FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mint-ui/example/route.js at master · scopeCode/mint-ui · GitHub
scopeCode
/
mint-ui
Public
forked from
ElemeFE/mint-ui
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mint-ui
/
example
/
route.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (24 loc) · 616 Bytes
Breadcrumbs
mint-ui
/
example
/
route.js
Copy path
File metadata and controls
28 lines (24 loc) · 616 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import
NavConfig
from
'./nav.config.json'
;
const
registerRoute
=
(
config
)
=>
{
let
route
=
{
}
;
config
.
map
(
nav
=>
nav
.
list
.
map
(
page
=>
{
try
{
route
[
`/
${
page
.
path
}
`
]
=
{
component
:
require
(
`./pages
${
page
.
path
}
`
)
,
title
:
page
.
title
||
page
.
name
,
description
:
page
.
description
}
;
}
catch
(
e
)
{
console
.
error
(
e
)
;
page
.
disabled
=
true
;
}
}
)
)
;
return
{
route
,
navs
:
config
}
;
}
;
const
route
=
registerRoute
(
NavConfig
)
;
export
const
navs
=
route
.
navs
;
export
default
Object
.
assign
(
{
'/'
:
{
component
:
require
(
'./demos.vue'
)
}
}
,
route
.
route
)
;
Back
|
FazBrowse Home
|
New Git URL