Signed-off-by: chy <chy@163.com>

This commit is contained in:
chy
2026-02-02 23:17:44 +08:00
parent e10f2f058c
commit a49878384e
774 changed files with 249821 additions and 0 deletions

15
src/directives/index.ts Normal file
View File

@@ -0,0 +1,15 @@
import type { App } from 'vue'
import { hasRole } from './permission/hasRole'
import { hasPermi } from './permission/hasPermi'
import { hasResize } from './resize/ResizeObserver'
/**
* 导出指令v-xxx
* @methods hasRole 用户权限,用法: v-hasRole
* @methods hasPermi 按钮权限,用法: v-hasPermi
*/
export const setupAuth = (app: App<Element>) => {
hasRole(app)
hasPermi(app)
hasResize(app)
}