@@ -2,7 +2,7 @@
VUE_APP_TITLE = 后端管理系统
# 生产环境配置
-ENV = 'production'
+NODE_ENV = 'production'
# 后端管理系统/生产环境
VUE_APP_BASE_API = '/airoptms'
@@ -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
})