mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Demo:修复无法在节点图片弹窗里删除节点图片的问题
This commit is contained in:
parent
94478fe9f3
commit
6d202b4b7d
@ -101,7 +101,19 @@ export default {
|
||||
|
||||
async confirm() {
|
||||
try {
|
||||
if (!this.img && !this.imgUrl) return
|
||||
// 删除图片
|
||||
if (!this.img && !this.imgUrl) {
|
||||
this.cancel()
|
||||
this.activeNodes.forEach(node => {
|
||||
node.setImage({
|
||||
url: '',
|
||||
title: '',
|
||||
width: 0,
|
||||
height: 0
|
||||
})
|
||||
})
|
||||
return
|
||||
}
|
||||
let res = null
|
||||
let img = ''
|
||||
if (this.img) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user