From 23412e0effa27d5d0f79f5796bc4e738cf8cd1fc Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Fri, 03 Mar 2023 16:08:49 +0800
Subject: [PATCH] 更新
---
src/utils/directive.ts | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/utils/directive.ts b/src/utils/directive.ts
index a75b187..ccac511 100644
--- a/src/utils/directive.ts
+++ b/src/utils/directive.ts
@@ -1,6 +1,7 @@
import type { App } from 'vue';
import { authDirective } from '/@/utils/authDirective';
import { wavesDirective, dragDirective } from '/@/utils/customDirective';
+import { preventClick } from '/@/utils/throttle';
/**
* 导出指令方法:v-xxx
@@ -9,10 +10,12 @@
* @methods dragDirective 自定义拖动指令,用法:v-drag
*/
export function directive(app: App) {
- // 用户权限指令
- authDirective(app);
- // 按钮波浪指令
- wavesDirective(app);
- // 自定义拖动指令
- dragDirective(app);
+ // 用户权限指令
+ authDirective(app);
+ // 按钮波浪指令
+ wavesDirective(app);
+ // 自定义拖动指令
+ dragDirective(app);
+
+ preventClick(app);
}
--
Gitblit v1.9.2