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