From c31d5aa8e6a2e08381674f31093b7a0969b57895 Mon Sep 17 00:00:00 2001 From: LCJ-MinYa <1049468118@qq.com> Date: Wed, 15 Oct 2025 16:53:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=A0=87=E6=B3=A8=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/tuiImageEditor/components/image-editor.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/demo/tuiImageEditor/components/image-editor.vue b/src/views/demo/tuiImageEditor/components/image-editor.vue index bbd3013..86a6339 100644 --- a/src/views/demo/tuiImageEditor/components/image-editor.vue +++ b/src/views/demo/tuiImageEditor/components/image-editor.vue @@ -86,7 +86,9 @@ onMounted(async () => { addEventListenerFN(); }); -onUnmounted(() => {}); +onUnmounted(() => { + removeEventListenerFN(); +}); const locale_zh = { Resize: '调整宽高', @@ -319,6 +321,10 @@ const addEventListenerFN = () => { window.addEventListener('wheel', handleWheelEvent); }; +const removeEventListenerFN = () => { + window.removeEventListener('wheel', handleWheelEvent); +}; + const handleClickOutside = (event) => { const getBtnDom = (claseeName) => { return document.querySelector(claseeName);