wangtao il y a 2 ans
Parent
commit
98a19d312c
3 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      .env.production
  2. 1 1
      public/index.html
  3. 2 2
      src/views/login.vue

+ 1 - 1
.env.production

@@ -3,7 +3,7 @@ ENV = 'production'
 # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
 # VUE_APP_BASE_API  = 'http://114.55.24.6:8083'
-VUE_APP_BASE_API  = 'http://172.16.120.49/wyxtapi/'
+VUE_APP_BASE_API  = '/wyxtapi'
 
 # 如果接口是 http 形式, wss 需要改为 ws
 # VUE_APP_WS_API = 'ws://114.55.24.6:8083'

+ 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="/favicon.png">
+    <link rel="icon" href="/wyxtweb/favicon.png">
     <title>
         <%= webpackConfig.name %>
     </title>

+ 2 - 2
src/views/login.vue

@@ -203,14 +203,14 @@ export default {
       this.$store.dispatch('LoginERP', data).then((res) => {
         this.$router.push({ path: '/dashboard' }).catch(() => {})
       }).catch((err) => {
-        location.href = '/dashboard'
+        location.href = '/wyxtweb/#/'
       })
     },
     handleLoginSaaS(data) { // SaaS登录
       this.$store.dispatch('Login', data).then((res) => {
         this.$router.push({ path: '/dashboard' })
       }).catch((err) => {
-        location.href = ''
+        location.href = '/wyxtweb/#/'
       })
     }
   }