fix:修改 切换到详细视图时 路由绑定对象未变化的问题

This commit is contained in:
zhangyu
2022-09-06 13:56:20 +08:00
parent 2c166ce629
commit e3e62b3b09
6 changed files with 59 additions and 58 deletions

View File

@@ -1646,24 +1646,15 @@ export default {
},
onUpdateProps (node) { // 更新pen
const obj = {
id: node.id,
x: node.x,
y: node.y,
data: node.data,
width: node.width,
height: node.height,
borderRadius: node.borderRadius,
rotate: node.rotate,
background: node.background,
iconColor: node.iconColor,
gradientType: node.gradientType,
gradientFromColor: node.gradientFromColor,
gradientToColor: node.gradientToColor,
globalAlpha: node.globalAlpha,
dash: node.dash,
strokeColor: node.strokeColor
}
let obj = this.$loadsh.cloneDeep(node)
console.log(obj)
delete obj.x
delete obj.y
delete obj.center
delete obj.ex
delete obj.ey
delete obj.width
delete obj.height
getTopology(this.topologyIndex).setValue(obj)
},