mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-19 01:15:53 +08:00
fix: 🐛 修复商家端菜单切换之后active样式丢失问题
This commit is contained in:
@@ -360,6 +360,11 @@ util.initRouter = function (vm) { // 初始化路由
|
||||
// 缓存数据 修改加载标识
|
||||
window.localStorage.setItem('menuData', JSON.stringify(menuData));
|
||||
vm.$store.commit('setAdded', true);
|
||||
if(vm.$store.state.app.refMenu){
|
||||
vm.$nextTick(()=>{
|
||||
vm.$store.state.app.refMenu.updateActiveName();
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user