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
31dae2ed
Commit
31dae2ed
authored
May 07, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加默认的路由文件
parent
ffe608b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
defaultRoutes.json
src/router/defaultRoutes.json
+5
-0
getMicRouters.js
src/router/getMicRouters.js
+3
-14
No files found.
src/router/defaultRoutes.json
0 → 100644
View file @
31dae2ed
{
"Layout"
:
[
]
}
\ No newline at end of file
src/router/getMicRouters.js
View file @
31dae2ed
...
...
@@ -6,6 +6,7 @@ import yangpu from '@/router/yangpuRoutes.json'
import
ajax
from
'@/server/ajax'
import
api
from
'@/server/api'
import
documents
from
'@/router/documentsRoutes.json'
import
defaultRoutes
from
'@/router/defaultRoutes.json'
import
Store
from
'@/store/index'
async
function
GetRoutes
(
router
)
{
...
...
@@ -16,10 +17,10 @@ async function GetRoutes(router) {
// case env.indexOf('pudong') > -1: // 根据当前打包的项目调用该项目对应的路由
case
'sit'
:
MicRouters
=
d
ocument
s
MicRouters
=
d
efaultRoute
s
break
case
'production'
:
MicRouters
=
d
ocument
s
MicRouters
=
d
efaultRoute
s
break
case
'pudong-sit'
:
...
...
@@ -77,18 +78,6 @@ async function GetRoutes(router) {
})
}()
// 徐汇区的子项目要看当前用户是否是超管,否则不展示 处置单和投诉
// console.log(Store.state.userInfos)
// if (env.indexOf('xuhui') != -1 ) {
// let newArr= []
// MicRouters.Layout.forEach((item) => {
// if (item.name != 'tousu' && item.name != 'Disposal' ) {
// newArr.push(item)
// }
// })
// MicRouters.Layout = newArr
// }
const
micSystemRoutersConfigs
=
Object
.
assign
({},
MicRouters
)
const
{
routes
}
=
router
.
options
const
parent
=
routes
.
find
(
item
=>
item
.
name
===
'Layout'
)
...
...
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