tangjunhao 4 сар өмнө
parent
commit
504a6813be

+ 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
 })