ludu-admin-vue3/src/directives/index.ts

14 lines
351 B
TypeScript
Raw Normal View History

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)
}