fix: 修改 topoLogy 图片选择后 无法删除的问题

This commit is contained in:
zhangyu
2023-03-29 16:41:16 +08:00
parent d7ae7cebd2
commit 97c4b3c155
3 changed files with 12 additions and 2 deletions

View File

@@ -407,9 +407,11 @@ export default {
obj[key] = findPen[key]
}
if (key === 'image') {
obj.imageId = pen[key]
obj.icon = ''
}
if (key === 'icon') {
obj.imageId = pen[key]
obj.image = ''
}
getTopology(this.meta2dId).setValue(obj) // 更新pen