mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Compatibility issues with zooming in and out of AI dialog box images (#4495)
This commit is contained in:
parent
b373986835
commit
2379654bb7
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue