From 9fbfde23137ac599a48b3dfb6f06554cecb4c46a Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 12 Oct 2021 12:45:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=92=A4=E9=94=80=E6=88=96=E8=80=85?= =?UTF-8?q?=E9=87=8D=E5=81=9A=E6=97=B6=EF=BC=8C=E8=A7=86=E5=9B=BE=E7=9F=A9?= =?UTF-8?q?=E9=98=B5=E6=A8=A1=E5=BC=8F=E5=8F=AF=E8=83=BD=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/components/Editor/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 } },