mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 21:02:49 +00:00
fix: 修复查看待办图片不符的情况
This commit is contained in:
parent
65ced28004
commit
4ed3db7e41
@ -3599,9 +3599,7 @@ export default {
|
|||||||
switch (target.nodeName) {
|
switch (target.nodeName) {
|
||||||
// 打开图片
|
// 打开图片
|
||||||
case "IMG":
|
case "IMG":
|
||||||
if (target.classList.contains('browse')) {
|
if (!(target.classList.contains('browse') && this.onViewPicture(target.currentSrc))) {
|
||||||
this.onViewPicture(target.currentSrc);
|
|
||||||
} else {
|
|
||||||
const list = $A.getTextImagesInfo(el.outerHTML)
|
const list = $A.getTextImagesInfo(el.outerHTML)
|
||||||
this.$store.dispatch("previewImage", {index: target.currentSrc, list})
|
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})
|
this.$store.dispatch("previewImage", {index: currentUrl, list})
|
||||||
|
return true
|
||||||
},
|
},
|
||||||
|
|
||||||
onDownFile(data) {
|
onDownFile(data) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user