We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b373986 commit 2379654Copy full SHA for 2379654
ui/src/components/ai-chat/index.vue
@@ -717,11 +717,11 @@ onMounted(() => {
717
if (event.target) {
718
const target = event.target as HTMLElement
719
// 假设打开状态的图片具有特定类名
720
- if (target.className && target.className.includes('medium-zoom-overlay')) {
+ if (target.classList && target.classList.contains('medium-zoom-overlay')) {
721
event.preventDefault()
722
event.stopPropagation()
723
}
724
- if (target.className && target.className.includes('medium-zoom-image--opened')) {
+ if (target.classList && target.classList.contains('medium-zoom-image--opened')) {
725
726
727
0 commit comments