Browse Source

514路由页面跳转

tangjunhao 4 tháng trước cách đây
mục cha
commit
504a6813be
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 1
      adi-ui/.env.production
  2. 1 0
      adi-ui/src/router/index.js

+ 1 - 1
adi-ui/.env.production

@@ -2,7 +2,7 @@
 VUE_APP_TITLE = 后端管理系统
 
 # 生产环境配置
-ENV = 'production'
+NODE_ENV = 'production'
 
 # 后端管理系统/生产环境
 VUE_APP_BASE_API = '/airoptms'

+ 1 - 0
adi-ui/src/router/index.js

@@ -178,6 +178,7 @@ Router.prototype.replace = function push(location) {
 
 export default new Router({
   mode: 'history', // 去掉url中的#
+  base: process.env.VUE_APP_BASE_URL,
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRoutes
 })