15815213711
2022-03-07 56f8b51c26bd1fb7e1fdc62acab5151cdf83c860
1
2
3
4
5
6
7
8
9
10
11
12
import {App} from "vue";
import {hasRole} from "@/directive/permission/hasRole";
import {hasPermi} from "@/directive/permission/hasPermi";
 
/**
 * 自定义指令
 * @param app
 */
export default function directive(app: App<Element>) {
    app.directive('hasRole', hasRole)
    app.directive('hasPermi', hasPermi)
}