Demo:修复双击节点图片预览图片不显示的问题;修复节点图片弹窗中图片不显示的问题

This commit is contained in:
街角小林
2025-07-04 18:43:05 +08:00
parent 919b1517d9
commit bff6024e2e
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ export default {
this.reset()
if (this.activeNodes.length > 0) {
let firstNode = this.activeNodes[0]
let img = firstNode.getData('image') || ''
let img = firstNode.getImageUrl() || ''
if (img) {
if (/^https?:\/\//.test(img)) {
this.imgUrl = img

View File

@@ -29,7 +29,7 @@ export default {
onNodeTmgDblclick(node, e) {
e.stopPropagation()
e.preventDefault()
this.images = [node.nodeData.data.image]
this.images = [node.getImageUrl()]
this.$viewerApi({
images: this.images
})