mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-06-10 00:34:08 +08:00
chore: update deps and lint fix
This commit is contained in:
@@ -44,7 +44,7 @@ export function createPermissionGuard(router) {
|
||||
}
|
||||
|
||||
const routes = router.getRoutes()
|
||||
if (routes.find(route => route.name === to.name))
|
||||
if (routes.some(route => route.name === to.name))
|
||||
return true
|
||||
|
||||
// 判断是无权限还是404
|
||||
|
||||
Reference in New Issue
Block a user