fix: 🐛 修复商家端菜单切换之后active样式丢失问题

This commit is contained in:
Yer
2023-08-16 16:29:45 +08:00
parent 74b180f6d3
commit 8c9246faa4
3 changed files with 13 additions and 5 deletions

View File

@@ -40,9 +40,13 @@ const app = {
tagsList: [...otherRouter.children],
messageCount: 0,
// 在这里定义你不想要缓存的页面的name属性值(参见路由配置router.js)
dontCache: ['test', 'test']
dontCache: ['test', 'test'],
refMenu:""
},
mutations: {
childrenMenu(state,v){
state.refMenu = v
},
// 动态添加主界面路由,需要缓存
updateAppRouter(state, routes) {
state.routers.push(...routes);