Demo:修复无法在节点图片弹窗里删除节点图片的问题
This commit is contained in:
parent
94478fe9f3
commit
6d202b4b7d
@ -101,7 +101,19 @@ export default {
|
|||||||
|
|
||||||
async confirm() {
|
async confirm() {
|
||||||
try {
|
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 res = null
|
||||||
let img = ''
|
let img = ''
|
||||||
if (this.img) {
|
if (this.img) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user