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