初始化项目
This commit is contained in:
1 parent
c2e3cc50e7
commit
131fd5323c
14 files changed
+648
-10
No files matched your search
@@ -0,0 +1,42 @@
|
||||
// 代理环境,1测试环境,2生产环境
|
||||
const VUE_APP_PROXY = process.env.VUE_APP_PROXY
|
||||
? parseInt(process.env.VUE_APP_PROXY)
|
||||
: 1;
|
||||
|
||||
let target = "";
|
||||
|
||||
switch (VUE_APP_PROXY) {
|
||||
case 1:
|
||||
target = "https://xtbgtest.digitalgd.com.cn";
|
||||
break;
|
||||
case 2:
|
||||
target = "https://xtbg.gdzwfw.gov.cn";
|
||||
break;
|
||||
default:
|
||||
target = "https://xtbgdev.digitalgd.com.cn";
|
||||
}
|
||||
|
||||
let proxyTable = {
|
||||
"/zuul": {
|
||||
target: target,
|
||||
changeOrigin: true,
|
||||
secure: false
|
||||
},
|
||||
"/sjht": {
|
||||
target: target,
|
||||
changeOrigin: true,
|
||||
secure: false
|
||||
},
|
||||
"/media/": {
|
||||
target: target,
|
||||
changeOrigin: true,
|
||||
secure: false
|
||||
},
|
||||
"/bzdb": {
|
||||
target: target,
|
||||
changeOrigin: true,
|
||||
secure: false
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = proxyTable;
|
||||
Reference in new issue
Block a user