diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue index bea4ff28f1..1b30868ac8 100644 --- a/frontend/src/components/canvas/components/Editor/index.vue +++ b/frontend/src/components/canvas/components/Editor/index.vue @@ -967,7 +967,8 @@ export default { 'canvasStyleData', 'editor', 'linkageSettingStatus', - 'curLinkageView' + 'curLinkageView', + 'snapshotIndex' ]) }, watch: { @@ -1019,6 +1020,14 @@ export default { // console.log('positionBox:' + JSON.stringify(positionBox)) }, deep: true + }, + // 镜像索引有变化 刷新一下矩阵(撤销重做等) + snapshotIndex: { + handler(newVal, oldVla) { + console.log('snapshotIndexChange:' + newVal) + this.initMatrix() + }, + deep: true } },