仪表盘
版本库
文件存储
活动
搜索
登录
main
/
yuanwang-mes-uniapp
山东元旺PDA
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
feat: 弹窗配置
曹睿
2025-05-14
74760830d548c55cf55439c55072a54495397fb5
[yuanwang-mes-uniapp.git]
/
src
/
directive
/
index.ts
1
2
3
4
5
6
7
8
9
10
import type { App } from "vue";
import { hasPerm, hasRole } from "./permission";
// 全局注册 directive
export function setupDirective(app: App<Element>) {
// 使 v-hasPerm 在所有组件中都可用
app.directive("hasPerm", hasPerm);
app.directive("hasRole", hasRole);
}