Skip to content

Commit 2379654

Browse files
shaohuzhang1liuruibin
authored andcommitted
fix: Compatibility issues with zooming in and out of AI dialog box images (#4495)
1 parent b373986 commit 2379654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/components/ai-chat/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,11 +717,11 @@ onMounted(() => {
717717
if (event.target) {
718718
const target = event.target as HTMLElement
719719
// 假设打开状态的图片具有特定类名
720-
if (target.className && target.className.includes('medium-zoom-overlay')) {
720+
if (target.classList && target.classList.contains('medium-zoom-overlay')) {
721721
event.preventDefault()
722722
event.stopPropagation()
723723
}
724-
if (target.className && target.className.includes('medium-zoom-image--opened')) {
724+
if (target.classList && target.classList.contains('medium-zoom-image--opened')) {
725725
event.preventDefault()
726726
event.stopPropagation()
727727

0 commit comments

Comments
 (0)