Commit 5e8b724c authored by hangjun83's avatar hangjun83

支持多环境打包配置

parent 23c56631
......@@ -2,3 +2,4 @@ NODE_ENV = 'production'
VUE_APP_ENV = 'prod'
VUE_APP_MOCK = false
BASE_URL= '/adminapi'
API_URL= 'http://localhost:8211/'
......@@ -18,7 +18,7 @@ export default {
*/
baseUrl: {
dev: '',
pro: 'http://localhost:8211/'
pro: process.env.API_URL
},
/**
* @description 默认打开的首页的路由name值,默认为home
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment