@@ -7,5 +7,8 @@ ENV = 'development'
# 若依管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'
+# 网关路由
+EMS_REWRITE_URL = '74/ems'
+
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
@@ -6,3 +6,6 @@ ENV = 'production'
# 若依管理系统/生产环境
VUE_APP_BASE_API = '/prod-api'
+EMS_REWRITE_URL = '/ems'
@@ -38,7 +38,8 @@ module.exports = {
target: `http://172.192.13.80:9100/`,
changeOrigin: true,
pathRewrite: {
- ['^' + process.env.VUE_APP_BASE_API]: ''
+ ['^' + process.env.VUE_APP_BASE_API]: '',
+ ['^' + process.env.VUE_APP_BASE_API+ '/ems']: process.env.EMS_REWRITE_URL
}
},