mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 04:32:49 +00:00
fix: 修复查看待办图片不符的情况
This commit is contained in:
parent
65ced28004
commit
4ed3db7e41
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user