eight
2024-10-11 70afd5a087e16f2fd5a1ba0541e3fd408bd91f5f
1
2
3
4
5
6
7
8
9
10
11
12
13
import type { App } from 'vue'
import { hasRole } from './permission/hasRole'
import { hasPermi } from './permission/hasPermi'
 
/**
 * 导出指令:v-xxx
 * @methods hasRole 用户权限,用法: v-hasRole
 * @methods hasPermi 按钮权限,用法: v-hasPermi
 */
export const setupAuth = (app: App<Element>) => {
  hasRole(app)
  hasPermi(app)
}