chore: prettier & lint
Former-commit-id: 486f65e137348f400d7b95067bd3cd5a2f23ff44
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { App } from 'vue';
|
||||
import type { App } from "vue";
|
||||
|
||||
import { hasPerm } from './permission';
|
||||
import { hasPerm } from "./permission";
|
||||
|
||||
// 全局注册 directive
|
||||
export function setupDirective(app: App<Element>) {
|
||||
// 使 v-hasPerm 在所有组件中都可用
|
||||
app.directive('hasPerm', hasPerm);
|
||||
app.directive("hasPerm", hasPerm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user