Commit 5121597a authored by Gakki's avatar Gakki

env

parent 8c5eda97
......@@ -12,7 +12,7 @@ const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
console.log(process.env.NODE_ENV)
let env = require('../config/prod.env')
let env
if (process.env.NODE_ENV === 'sit') {
env = require('../config/sit.env')
} else if (process.env.NODE_ENV === 'uat') {
......
......@@ -4,14 +4,16 @@ import xuhui from '@/router/xuhuiRoutes.json'
async function GetRoutes(router) {
let env = process.env.NODE_ENV
console.log(env)
console.log('ENV: ' + env)
let MicRouters
switch (env) {
case env.indexOf('pudong') > -1: // 根据当前打包的项目调用该项目对应的路由
// case env.indexOf('pudong') > -1: // 根据当前打包的项目调用该项目对应的路由
case env == 'pudong-sit' || env == 'pudong-prod':
MicRouters = pudong
break
case env.indexOf('xuhui') > -1:
// case env.indexOf('xuhui') > -1:
case env == 'xuhui-sit' || env == 'xuhui-prod':
MicRouters = xuhui
break
......
......@@ -33,10 +33,6 @@
{
"path": "/pudong/successCase", "name": "successCase",
"meta": { "title": "成功案例", "menuPath": true, "menuIcon": "profile", "hideInBread": false }
},
{
"path": "/pudong/streetMailSettings", "name": "streetMailSettings",
"meta": { "title": "街道邮件配置", "menuPath": true, "menuIcon": "profile", "hideInBread": false }
}
]
},
......@@ -67,20 +63,6 @@
"meta": { "title": "隐患点管理", "menuPath": true, "menuIcon": "profile", "hideInBread": false }
}
]
},
{
"path": "/czd/systemManagement/placementContactManagement", "name": "placementContactManagement",
"meta": { "title": "处置单联系方式管理", "menuPath": true, "menuIcon": "profile", "hideInBread": false },
"children": [
{
"path": "/czd/systemManagement/placementContactManagement/commiteeContactManagement", "name": "commiteeContactManagement",
"meta": { "title": "居委会联系人管理", "menuPath": true, "menuIcon": "profile", "hideInBread": false }
},
{
"path": "/czd/systemManagement/placementContactManagement/propertyContactManagement", "name": "propertyContactManagement",
"meta": { "title": "物业联系人管理", "menuPath": true, "menuIcon": "profile", "hideInBread": false }
}
]
}
]
}
\ No newline at end of file
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