fix: 同步退出登录后再登录不同权限账号时菜单不更新问题
This commit is contained in:
@@ -96,12 +96,18 @@ export const usePermisstionStroe = defineStore('permisstion', () => {
|
||||
}
|
||||
}
|
||||
|
||||
const removeMenu = () => {
|
||||
menuList.value.length = 0
|
||||
asyncRouters.value.length = 0
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
asyncRouters,
|
||||
menuList,
|
||||
isLoadRoutes,
|
||||
setAsyncRouters,
|
||||
setIsLoadRoutes
|
||||
setIsLoadRoutes,
|
||||
removeMenu
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user