Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mobi
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
1
Merge Requests
1
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
wbx-PCAndMobi
mobi
Commits
357936d5
Commit
357936d5
authored
Mar 02, 2021
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未上线
parent
840d3aa9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
getMicRouters.js
src/router/getMicRouters.js
+13
-13
No files found.
src/router/getMicRouters.js
View file @
357936d5
...
...
@@ -80,19 +80,19 @@ async function GetRoutes(router) {
}
}
for
(
let
key
in
documents
)
{
for
(
let
i
=
0
;
i
<
documents
[
key
].
length
;
i
++
)
{
let
firstRouter
=
Object
.
assign
({},
documents
[
key
][
i
])
if
(
!!
firstRouter
.
meta
.
openMode
&&
firstRouter
.
meta
.
openMode
==
'outsite'
)
{
firstRouter
.
component
=
TipsOutsite
}
parent
.
children
.
push
(
Object
.
assign
({},
firstRouter
))
router
.
addRoutes
([
parent
])
}
}
//
for(let key in documents) {
//
for (let i = 0; i < documents[key].length; i++) {
//
let firstRouter = Object.assign({}, documents[key][i])
//
if (
//
!!firstRouter.meta.openMode &&
//
firstRouter.meta.openMode == 'outsite'
//
) {
//
firstRouter.component = TipsOutsite
//
}
//
parent.children.push(Object.assign({}, firstRouter))
//
router.addRoutes([ parent ])
//
}
//
}
}
export
default
GetRoutes
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