Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f424f4f4
authored
Jun 03, 2021
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix breacrumb
1 parent
818234ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/App.vue
src/App.vue
View file @
f424f4f
...
@@ -49,7 +49,7 @@ export default {
...
@@ -49,7 +49,7 @@ export default {
let
matched
=
this
.
$route
.
matched
.
filter
(
item
=>
item
.
name
);
// this.$route.matched 可以获取到一个数组,包含当前路由的所有嵌套路径片段的路由记录
let
matched
=
this
.
$route
.
matched
.
filter
(
item
=>
item
.
name
);
// this.$route.matched 可以获取到一个数组,包含当前路由的所有嵌套路径片段的路由记录
const
first
=
matched
[
0
];
const
first
=
matched
[
0
];
const
{
meta
,
path
}
=
first
;
const
{
meta
,
path
}
=
first
;
const
basePath
=
'/
oEshield
#'
;
const
basePath
=
'/
system
#'
;
let
breadcrumb
=
[];
let
breadcrumb
=
[];
if
(
meta
)
{
if
(
meta
)
{
const
{
title
,
pushState
}
=
meta
;
const
{
title
,
pushState
}
=
meta
;
...
@@ -58,7 +58,9 @@ export default {
...
@@ -58,7 +58,9 @@ export default {
name
:
title
,
name
:
title
,
path
:
basePath
+
path
path
:
basePath
+
path
})
})
this
.
$root
.
parentVuex
.
dispatch
(
'menu/setBreadCrumb'
,
[...
curBreadCrumb
,
breadcrumb
[
0
]]);
history
.
state
.
pushState
=
pushState
;
history
.
state
.
breadcrumb
=
[...
curBreadCrumb
,
breadcrumb
[
0
]];
// this.$root.parentVuex.dispatch('menu/setBreadCrumb', [...curBreadCrumb, breadcrumb[0]]);
}
}
}
}
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment