Commit 2afb711b by 张杰

v1.5.0版本需求

1 parent a97c9aa3
......@@ -63,7 +63,8 @@ const qianKunStart = (config, baseURL) => {
setDefaultMountApp(defaultApp);
start({ singular: false });
//start({ singular: false });
start()
}
......
......@@ -79,24 +79,28 @@ export const Common = {
}
// 控制菜单展开
list.map(k => {
console.log(k.label +'---'+ o.label)
if (k.label == o.label) {
k.showSubList = true
} else {
k.showSubList = false;
}
(k.children || []).map(j => {
if (j.origin.frontRoute == m.origin.frontRoute) {
j.subItemActive = true
if (o && m) {
list.map(k => {
if (k.label == o.label) {
k.showSubList = true
} else {
j.subItemActive = false;
k.showSubList = false;
}
(k.children || []).map(j => {
if (j.origin.frontRoute == m.origin.frontRoute) {
j.subItemActive = true
} else {
j.subItemActive = false;
}
})
})
})
}
store.dispatch("menu/setBreadCrumb", arr);
store.commit('menu/SET_MENU_LIST', list)
}
},
// 公共页面跳转方法
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!