wujianwei
2026-01-19 7d0c8a812777393ac2eefe40cbe3fa8b857e9b1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {App} from "vue";
import {hasRole} from "@/directive/permission/hasRole";
import {hasPermi} from "@/directive/permission/hasPermi";
import {hasShowQuery,hasShowListOpt} from "@/directive/permission/hasShowQuery";
/**
 * 自定义指令
 * @param app
 */
export default function directive(app: App<Element>) {
    app.directive('hasRole', hasRole)
    app.directive('hasPermi', hasPermi)
    app.directive('hasShowQuery', hasShowQuery)
    app.directive('hasShowListOpt', hasShowListOpt)
}