From fd285d6245ddd54c2eef8237eb878f573d665f94 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期四, 07 七月 2022 18:27:39 +0800
Subject: [PATCH] lct

---
 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