wangtao 2 年 前
コミット
e5c7e6e657

+ 1 - 1
.env.production

@@ -5,4 +5,4 @@ VUE_APP_TITLE = 设备设施管理系统
 ENV = 'production'
 
 # 管理系统/生产环境
-VUE_APP_BASE_API = 'http://172.16.120.49/dmapi/'
+VUE_APP_BASE_API = '/dmapi'

BIN
public/favicon.ico


+ 1 - 1
public/index.html

@@ -6,7 +6,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="renderer" content="webkit">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
-    <link rel="icon" href="<%= BASE_URL %>favicon.png">
+    <link rel="icon" href="/dmweb/favicon.png">
     <title>
         <%= webpackConfig.name %>
     </title>

+ 1 - 1
src/layout/components/Navbar.vue

@@ -121,7 +121,7 @@ export default {
         type: 'warning'
       }).then(() => {
         this.$store.dispatch('LogOut').then(() => {
-          location.href = '/';
+          location.href = '/dmweb/#/';
         })
       }).catch(() => {});
     }

+ 2 - 2
src/utils/request.js

@@ -66,7 +66,7 @@ service.interceptors.response.use(res => {
                     type: 'warning'
                 }).then(() => {
                     store.dispatch('LogOut').then(() => {
-                        location.href = '/#/';
+                        location.href = '/dmweb/#/';
                     })
                 }).catch(() => {});
                 // return Promise.reject()
@@ -110,4 +110,4 @@ service.interceptors.response.use(res => {
         return Promise.reject(error)
     }
 )
-export default service
+export default service

+ 2 - 2
src/views/login.vue

@@ -207,14 +207,14 @@ export default {
       this.$store.dispatch("LoginERP", data).then((res) => {
         this.$router.push({ path: "/index"}).catch(()=>{});
       }).catch((err) => {
-        location.href = '/#/login';
+        location.href = '/dmweb/#/login';
       });
     },
     handleLoginSaaS(data) {//SaaS登录
         this.$store.dispatch("LoginSaaS", data).then((res) => {
           this.$router.push({ path: "/index"});
         }).catch(()=>{
-          location.href = '';
+          location.href = '/dmweb/#/';
         })
     }
   }