From 324a241319f8fdb739963657ddf63989a7287adf Mon Sep 17 00:00:00 2001
From: wf <2547096351@qq.com>
Date: Wed, 24 Jul 2024 18:22:06 +0800
Subject: [PATCH] =?UTF-8?q?little:=20=E6=9C=AA=E5=81=9A=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/directives/modules/custom.ts | 7 ++----
src/store/modules/theme-config.ts | 2 +-
.../test-instruction/test-instruction.vue | 24 ++++++++++++-------
3 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/src/directives/modules/custom.ts b/src/directives/modules/custom.ts
index 3d582c6..c6f423c 100644
--- a/src/directives/modules/custom.ts
+++ b/src/directives/modules/custom.ts
@@ -3,13 +3,10 @@ import { Directive } from "vue";
const custom: Directive = {
mounted(el, binding, vnode) {
el.__onClick__ = () => {
- binding.value(vnode.props);
+ let { goodsId, event } = binding.value;
+ event(goodsId);
};
el.addEventListener("click", el.__onClick__);
- },
- beforeUnmount(el) {
- // 解绑dom上的点击事件
- el.removeEventListener("click", el.__onClick__);
}
};
diff --git a/src/store/modules/theme-config.ts b/src/store/modules/theme-config.ts
index e5e9a14..d2c2d59 100644
--- a/src/store/modules/theme-config.ts
+++ b/src/store/modules/theme-config.ts
@@ -39,7 +39,7 @@ export const useThemeConfig = defineStore("theme-config", {
isBreadcrumb: true, // 面包屑渲染
isTabs: true, // 标签栏渲染
isFooter: true, // 页脚渲染
- watermark: "SnowAdmin", // 水印
+ watermark: "", // 水印
watermarkStyle: {
fontSize: 12,
color: "rgba(0, 0, 0, 0.15)"
diff --git a/src/views/custom-instruction/test-instruction/test-instruction.vue b/src/views/custom-instruction/test-instruction/test-instruction.vue
index 2a393a1..941b54f 100644
--- a/src/views/custom-instruction/test-instruction/test-instruction.vue
+++ b/src/views/custom-instruction/test-instruction/test-instruction.vue
@@ -1,18 +1,26 @@
-
+ 测试指令
+