解决菜单缓存的bug

This commit is contained in:
季圣华
2021-09-02 22:24:01 +08:00
parent 11040f6a83
commit 204bf7e330
6 changed files with 79 additions and 71 deletions

View File

@@ -153,7 +153,7 @@
myMenuSelect(value){
//此处触发动态路由被点击事件
this.findMenuBykey(this.menus,value.key)
this.$emit("dynamicRouterShow",value.key, this.activeMenu.id, this.activeMenu.text)
this.$emit("dynamicRouterShow",value.key, this.activeMenu.id, this.activeMenu.text, this.activeMenu.component)
let storeKey = 'route:title:' + this.activeMenu.url
this.$ls.set(storeKey, this.activeMenu.text)
},