Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multiSystem
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yulun Yao
multiSystem
Commits
5121597a
Commit
5121597a
authored
Oct 22, 2020
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
env
parent
8c5eda97
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
22 deletions
+6
-22
webpack.prod.conf.js
build/webpack.prod.conf.js
+1
-1
getMicRouters.js
src/router/getMicRouters.js
+5
-3
pudongRoutes.json
src/router/pudongRoutes.json
+0
-18
No files found.
build/webpack.prod.conf.js
View file @
5121597a
...
...
@@ -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'
)
{
...
...
src/router/getMicRouters.js
View file @
5121597a
...
...
@@ -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
...
...
src/router/pudongRoutes.json
View file @
5121597a
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment