fix: 修复查看待办图片不符的情况

This commit is contained in:
kuaifan 2025-03-19 08:48:51 +08:00
parent 65ced28004
commit 4ed3db7e41

View File

@ -3599,9 +3599,7 @@ export default {
switch (target.nodeName) {
//
case "IMG":
if (target.classList.contains('browse')) {
this.onViewPicture(target.currentSrc);
} else {
if (!(target.classList.contains('browse') && this.onViewPicture(target.currentSrc))) {
const list = $A.getTextImagesInfo(el.outerHTML)
this.$store.dispatch("previewImage", {index: target.currentSrc, list})
}
@ -3756,7 +3754,13 @@ export default {
}
})
//
const current = $A.thumbRestore(currentUrl)
if (!list.find(item => $A.thumbRestore(item.src) == current)) {
return false
}
//
this.$store.dispatch("previewImage", {index: currentUrl, list})
return true
},
onDownFile(data) {