From 559068a41399c1e26f2c0d692889388fc8bba73b Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期四, 07 十二月 2023 09:01:19 +0800
Subject: [PATCH] 修改视频专网内网

---
 vite.config.ts                      |    6 +++---
 src/utils/request.ts                |   18 ------------------
 src/api/system/oss/index.ts         |    2 +-
 src/components/FileUpload/index.vue |    1 +
 4 files changed, 5 insertions(+), 22 deletions(-)

diff --git a/src/api/system/oss/index.ts b/src/api/system/oss/index.ts
index 57c5ad4..df1e717 100644
--- a/src/api/system/oss/index.ts
+++ b/src/api/system/oss/index.ts
@@ -29,7 +29,7 @@
 export function createUser(winIp: string | number | Array<string | number>) {
   return request({
     url: '/auth/auto' ,
-    method: 'put',
+    method: 'get',
     data: winIp
   });
 }
diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue
index 7d48d16..a153cb7 100644
--- a/src/components/FileUpload/index.vue
+++ b/src/components/FileUpload/index.vue
@@ -165,6 +165,7 @@
 const handleUploadSuccess = (res: any, file: UploadFile) => {
   console.log(res,'resresres');
     if (res.code === 200) {
+      proxy?.$modal.msgSuccess("涓婁紶鏂囦欢鎴愬姛");
       emit('closePopup',res.data)
 
       console.log('璋冪敤鐖剁粍浠�',res);
diff --git a/src/utils/request.ts b/src/utils/request.ts
index ebd7d89..5d688ad 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -114,24 +114,6 @@
 
       console.log(code, 'code==============');
       await router.push({ path: '/login' });
-      // prettier-ignore
-      // if (!isRelogin.show) {
-      //   // isRelogin.show = true;
-      //   isRelogin.show = true;
-      //   ElMessageBox.confirm('鐧诲綍鐘舵�佸凡杩囨湡锛屾偍鍙互缁х画鐣欏湪璇ラ〉闈紝鎴栬�呴噸鏂扮櫥褰�', '绯荤粺鎻愮ず', {
-      //     confirmButtonText: '閲嶆柊鐧诲綍',
-      //     cancelButtonText: '鍙栨秷',
-      //     type: 'warning'
-      //   }).then(() => {
-      //     isRelogin.show = false;
-      //     useUserStore().logout().then(() => {
-      //         location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index';
-      //       });
-      //   }).catch(() => {
-      //     isRelogin.show = false;
-      //   });
-      // }
-      // return Promise.reject('鏃犳晥鐨勪細璇濓紝鎴栬�呬細璇濆凡杩囨湡锛岃閲嶆柊鐧诲綍銆�');
       return
     } else if (code === HttpStatus.SERVER_ERROR) {
       console.log(msg);
diff --git a/vite.config.ts b/vite.config.ts
index e81bc74..5e4c3ce 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -26,9 +26,9 @@
       open: true,
       proxy: {
         [env.VITE_APP_BASE_API]: {
-          // target: '171.221.173.53:8801',
-          // target: 'http://80.36.32.175:8080',
-          target: 'http://192.168.3.228:8080',
+          // target: 'http://80.36.32.176:8080',
+          target: 'http://51.9.57.211:8080',
+          // target: 'http://192.168.3.228:8080',
           changeOrigin: true,
           rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
         }

--
Gitblit v1.8.0