mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-01-23 16:10:21 +08:00
fix: 当用户访问一个当前用户没有的权限时导航去404
This commit is contained in:
@@ -16,6 +16,8 @@ export const useRouterStore = defineStore('router', () => {
|
||||
accessRoutes.forEach((item) => {
|
||||
router.hasRoute(item.name) && router.removeRoute(item.name)
|
||||
})
|
||||
|
||||
router.removeRoute('catchAll')
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user