Commit 2afb711b by 张杰

v1.5.0版本需求

1 parent a97c9aa3
...@@ -63,7 +63,8 @@ const qianKunStart = (config, baseURL) => { ...@@ -63,7 +63,8 @@ const qianKunStart = (config, baseURL) => {
setDefaultMountApp(defaultApp); setDefaultMountApp(defaultApp);
start({ singular: false }); //start({ singular: false });
start()
} }
......
...@@ -79,24 +79,28 @@ export const Common = { ...@@ -79,24 +79,28 @@ export const Common = {
} }
// 控制菜单展开 // 控制菜单展开
list.map(k => { if (o && m) {
console.log(k.label +'---'+ o.label) list.map(k => {
if (k.label == o.label) { if (k.label == o.label) {
k.showSubList = true k.showSubList = true
} else {
k.showSubList = false;
}
(k.children || []).map(j => {
if (j.origin.frontRoute == m.origin.frontRoute) {
j.subItemActive = true
} else { } 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.dispatch("menu/setBreadCrumb", arr);
store.commit('menu/SET_MENU_LIST', list) 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!