Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Admin
Project
Project
Details
Activity
Releases
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
周远喜
Admin
Commits
af2e874e
Commit
af2e874e
authored
Mar 20, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增一个页面。
parent
06406809
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
9 deletions
+19
-9
default.vue
layouts/default.vue
+2
-1
dashboard.js
menu/modules/dashboard.js
+7
-1
sider.js
menu/sider.js
+1
-7
routes.js
router/routes.js
+9
-0
No files found.
layouts/default.vue
View file @
af2e874e
...
...
@@ -32,9 +32,10 @@ export default {
watch
:
{
// 监听路由 控制侧边栏显示 标记当前顶栏菜单(如需要)
$route
(
to
,
from
)
{
console
.
warn
(
"to,from"
,
to
,
from
);
console
.
warn
(
"to,from"
,
to
,
from
,
menuSider
);
let
path
=
to
.
matched
[
to
.
matched
.
length
-
1
].
path
;
if
(
!
Setting
.
dynamicSiderMenu
)
{
debugger
let
headerName
=
getHeaderName
(
path
,
menuSider
);
if
(
headerName
===
null
)
{
path
=
to
.
path
;
...
...
menu/modules/dashboard.js
View file @
af2e874e
...
...
@@ -9,5 +9,11 @@ export default {
path
:
`
${
pre
}
console`
,
title
:
'主控台'
}
],
// ,
// {
// path: '/hello',
// title: 'hello',
// header: 'home'
// }
]
}
menu/sider.js
View file @
af2e874e
...
...
@@ -6,11 +6,5 @@ import log from './modules/log';
export
default
[
dashboard
,
log
,
{
path
:
'/hello'
,
title
:
'hello'
,
header
:
'home'
,
icon
:
'md-home'
}
log
];
router/routes.js
View file @
af2e874e
...
...
@@ -33,6 +33,15 @@ const frameIn = [
},
component
:
()
=>
import
(
'@/pages/system/log'
)
},
{
path
:
'/hello'
,
name
:
'hello'
,
meta
:
{
title
:
'hello'
,
auth
:
true
},
component
:
()
=>
import
(
'@/pages/system/log'
)
},
// 刷新页面 必须保留
{
path
:
'refresh'
,
...
...
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