mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-20 19:09:21 +08:00
docs: 修正权限函数报错提示文案
This commit is contained in:
parent
a801a06edd
commit
2ec928434b
@ -9,7 +9,7 @@ export const checkPermission = (value: string[]): boolean => {
|
||||
return permissionRoles.includes(role)
|
||||
})
|
||||
} else {
|
||||
console.error("need roles! Like v-permission=\"['admin','editor']\"")
|
||||
console.error("need roles! Like checkPermission(['admin','editor'])")
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user