feat: 新增点击空白关闭指令

Former-commit-id: b972dcaec196fe3e5a261cebfece91d3596a51ab
This commit is contained in:
haoxr
2023-01-21 15:35:15 +08:00
parent 919bedcc0e
commit 3924565087
4 changed files with 71 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ import { useUserStoreHook } from '@/store/modules/user';
import { Directive, DirectiveBinding } from 'vue';
/**
* 按钮权限校验
* 按钮权限
*/
export const hasPerm: Directive = {
mounted(el: HTMLElement, binding: DirectiveBinding) {
@@ -32,7 +32,7 @@ export const hasPerm: Directive = {
};
/**
* 角色权限校验
* 角色权限
*/
export const hasRole: Directive = {
mounted(el: HTMLElement, binding: DirectiveBinding) {