Commit 6869437e authored by 程卓's avatar 程卓

优化配置

parent d1bf801d
...@@ -6,7 +6,6 @@ function GetSystemList() { ...@@ -6,7 +6,6 @@ function GetSystemList() {
let prodSystemList=micSystemsList.prod // 生产环境的子项目 let prodSystemList=micSystemsList.prod // 生产环境的子项目
let districtName //区局名称 let districtName //区局名称
let env = process.env.NODE_ENV //打包命令 let env = process.env.NODE_ENV //打包命令
let url = window.location.origin //当前访问的浏览器地址
// 1. 当打生产包的时候, // 1. 当打生产包的时候,
if ( env.indexOf('-prod')!= -1 ) { if ( env.indexOf('-prod')!= -1 ) {
...@@ -15,7 +14,7 @@ function GetSystemList() { ...@@ -15,7 +14,7 @@ function GetSystemList() {
// 3. 在生产环境的子项目list // 3. 在生产环境的子项目list
prodSystemList.forEach((item, index) => { prodSystemList.forEach((item, index) => {
if (item.districtName == districtName || item.districtName == 'common') { if (item.districtName == districtName || item.districtName == 'common') {
prodSystemList[index].entry = url + item.entry prodSystemList[index].entry =item.entry
system.push(item) system.push(item)
} }
}) })
......
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