Commit 5498c6ed by zhangxw

Merge branch 'v1.6.0' of http://192.168.3.233:8090/micro-customization-system/mi…

…cro-portal into v1.6.0
2 parents 27c0bd1c 2bfc843f
...@@ -89,16 +89,6 @@ export default { ...@@ -89,16 +89,6 @@ export default {
menuIcon: require("@/assets/images/icon/setting-icon.png"), menuIcon: require("@/assets/images/icon/setting-icon.png"),
}); });
console.log(store.state) console.log(store.state)
watch(() => store.state.menu.updateMenu, (n,o) => {
console.log("监听菜单更新");
console.log(n);
if(n){
//getMenuAuth()
}
},{
immediate:true,
deep:true
});
// 点击主菜单标题 // 点击主菜单标题
const titleClick = (item, idx) => { const titleClick = (item, idx) => {
...@@ -172,9 +162,11 @@ export default { ...@@ -172,9 +162,11 @@ export default {
cItem.subItemActive = true; cItem.subItemActive = true;
path = filterPath(path); path = filterPath(path);
console.log(path)
if (path === "/noData") { if (path === "/noData") {
showEmpty = true; showEmpty = true;
} }
let breadcrumb = [ let breadcrumb = [
{ {
name: pOrigin.menuName, name: pOrigin.menuName,
...@@ -185,6 +177,7 @@ export default { ...@@ -185,6 +177,7 @@ export default {
path: cOrigin.frontRoute, path: cOrigin.frontRoute,
}, },
]; ];
console.log('breadcrumb',breadcrumb)
getMenuAuth(cItem.id, cOrigin.menuName); getMenuAuth(cItem.id, cOrigin.menuName);
store.dispatch("app/setCommonData", { showEmpty }); store.dispatch("app/setCommonData", { showEmpty });
store.dispatch("menu/setBreadCrumb", breadcrumb); store.dispatch("menu/setBreadCrumb", breadcrumb);
...@@ -287,8 +280,10 @@ export default { ...@@ -287,8 +280,10 @@ export default {
if (!path || path == "/noData") { if (!path || path == "/noData") {
showEmpty = true; showEmpty = true;
} }
console.log('刷新进入此处')
name && getMenuAuth(id, name); name && getMenuAuth(id, name);
history.pushState({ breadcrumb: curBreadcrumb }, path, path); //v1.6.0版本临时注释,有问题 再放开
//history.pushState({ breadcrumb: curBreadcrumb }, path, path);
store.dispatch("app/setCommonData", { showEmpty }); store.dispatch("app/setCommonData", { showEmpty });
} else { } else {
let firstList = state.menuList[0]; let firstList = state.menuList[0];
......
...@@ -101,6 +101,9 @@ export const Common = { ...@@ -101,6 +101,9 @@ export const Common = {
}, },
// 公共页面跳转方法 // 公共页面跳转方法
navigateTo:function(options){
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!