Pārlūkot izejas kodu

Merge branch 'v2.0' of http://8.136.199.33:3000/eta_forum/eta_forum_admin_front into v2.0

chenlei 23 stundas atpakaļ
vecāks
revīzija
4df0396e71
3 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  1. 5 5
      src/api/index.js
  2. 2 2
      src/styles/tdesign.scss
  3. 2 2
      vite.config.js

+ 5 - 5
src/api/index.js

@@ -67,22 +67,22 @@ _axios.interceptors.response.use(
 
     if(response.status!==200){
       setTimeout(() => {
-        MessagePlugin.warning('网络异常')
+        MessagePlugin.error('网络异常')
       }, 100);
     }
 
     if(!data){
       setTimeout(() => {
-        MessagePlugin.warning('服务器开了个小差')
+        MessagePlugin.error('服务器开了个小差')
       }, 100);
     }
     if(data.Ret===408){//token失效
-      MessagePlugin.warning(data.Msg)
+      MessagePlugin.error(data.Msg)
       
     }
     if(data.Ret===403){
       setTimeout(() => {
-        MessagePlugin.warning(data.Msg||'网络异常')
+        MessagePlugin.error(data.Msg||'网络异常')
       }, 100);
     }
 
@@ -96,7 +96,7 @@ _axios.interceptors.response.use(
     }
     console.log(error);
     setTimeout(() => {
-      MessagePlugin.warning(error.message)
+      MessagePlugin.error(error.message)
     }, 300);
     // Do something with response error
     return Promise.reject(error);

+ 2 - 2
src/styles/tdesign.scss

@@ -1,8 +1,8 @@
 // 重写tdesign样式模块
 
 .t-dialog{
-  padding: 0;
-  border: none;
+  padding: 0 !important;
+  border: none !important;
   overflow: hidden;
   .t-dialog__header{
     padding: var(--td-comp-paddingTB-l);

+ 2 - 2
vite.config.js

@@ -93,8 +93,8 @@ export default defineConfig(({ mode }) => {
       proxy:{
         '/v1': {
           // target: 'http://192.168.20.10:8912/v1',
-          // target: 'http://8.136.199.33:8900/v1',
-          target: 'http://8.136.199.33:7777/adminapi/',
+          target: 'http://8.136.199.33:8900/v1',
+          // target: 'http://8.136.199.33:7777/adminapi/',
           changeOrigin: true,
           rewrite: (path) => path.replace(/^\/v1/, ''),
         }