Commit f94bc7d8 by 胡悦

Merge branch 'master' of 192.168.3.233:micro-system/system

2 parents 0d2c2d2b efe8d2e2
......@@ -42,8 +42,8 @@ function render({ data = {} , container } = {}) {
router.beforeEach((to, from, next)=>{
const metaTitle = to.meta.title;
const thisBreadCrumb = data.store.getters.curBreadCrumb;
if(metaTitle) {
const thisBreadCrumb = data.store.getters.curBreadCrumb;
if(thisBreadCrumb) {
let nextChildren = {};
nextChildren = {
......@@ -53,9 +53,11 @@ function render({ data = {} , container } = {}) {
params: to.params
};
thisBreadCrumb.children.children = nextChildren;
data.store.dispatch('menu/setBreadCrumb', thisBreadCrumb);
}
} else {
thisBreadCrumb.children.children = '';
}
data.store.dispatch('menu/setBreadCrumb', thisBreadCrumb);
next();
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!