提交 9fbfde23 authored 作者: wangjiahao's avatar wangjiahao

fix: 撤销或者重做时,视图矩阵模式可能失效的问题

上级 a0a823bb
...@@ -967,7 +967,8 @@ export default { ...@@ -967,7 +967,8 @@ export default {
'canvasStyleData', 'canvasStyleData',
'editor', 'editor',
'linkageSettingStatus', 'linkageSettingStatus',
'curLinkageView' 'curLinkageView',
'snapshotIndex'
]) ])
}, },
watch: { watch: {
...@@ -1019,6 +1020,14 @@ export default { ...@@ -1019,6 +1020,14 @@ export default {
// console.log('positionBox:' + JSON.stringify(positionBox)) // console.log('positionBox:' + JSON.stringify(positionBox))
}, },
deep: true deep: true
},
// 镜像索引有变化 刷新一下矩阵(撤销重做等)
snapshotIndex: {
handler(newVal, oldVla) {
console.log('snapshotIndexChange:' + newVal)
this.initMatrix()
},
deep: true
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论