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