公告板
版本库
filestore
活动
搜索
登录
main
/
cc-web
长城汽车软件包管理平台
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
内容提交
whychdw
2025-05-06
4a867727d81b9513e675ad396903368c6a293dca
[cc-web.git]
/
src
/
directive
/
index.ts
1
2
3
4
5
6
7
8
9
import type { App } from "vue";
import { hasPerm } from "./permission";
// 全局注册 directive
export function setupDirective(app: App<Element>) {
// 使 v-hasPerm 在所有组件中都可用
app.directive("hasPerm", hasPerm);
}