mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-11 16:52:28 +08:00
fix Bug or add example
This commit is contained in:
@@ -19,7 +19,7 @@ export function usePermission() {
|
||||
* 可用于 v-if 显示逻辑
|
||||
* */
|
||||
function hasPermission(accesses: string[]): boolean {
|
||||
if (!accesses.length) return true
|
||||
if (!accesses ||!accesses.length) return true
|
||||
return _someRoles(accesses)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user