From 2379654bb7a526fdca5509eef91844184bbbfa43 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Thu, 11 Dec 2025 13:22:50 +0800 Subject: [PATCH] fix: Compatibility issues with zooming in and out of AI dialog box images (#4495) --- ui/src/components/ai-chat/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index b402cc497..993c783de 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -717,11 +717,11 @@ onMounted(() => { if (event.target) { const target = event.target as HTMLElement // 假设打开状态的图片具有特定类名 - if (target.className && target.className.includes('medium-zoom-overlay')) { + if (target.classList && target.classList.contains('medium-zoom-overlay')) { event.preventDefault() event.stopPropagation() } - if (target.className && target.className.includes('medium-zoom-image--opened')) { + if (target.classList && target.classList.contains('medium-zoom-image--opened')) { event.preventDefault() event.stopPropagation()