FlowPacs/yudao-ui-admin-vue3/src/directives/index.ts

14 lines
351 B
TypeScript
Raw Normal View History

2022-07-18 19:06:37 +08:00
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)
}