mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-08 08:05:07 +08:00
refactor: vue3 axios api ...
This commit is contained in:
13
yudao-ui-admin-vue3/src/directives/index.ts
Normal file
13
yudao-ui-admin-vue3/src/directives/index.ts
Normal file
@ -0,0 +1,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)
|
||||
}
|
Reference in New Issue
Block a user