Demo:修复节点图片弹窗中图片不显示的问题

This commit is contained in:
街角小林 2025-04-25 08:54:38 +08:00
parent d8cf30aa31
commit d8df80147d

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