From e9acd3862109b43ac3018820e41fd4557e36d7d1 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 12 Oct 2021 14:18:55 +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=E8=AE=B0=E5=BD=95=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E4=B8=8D=E5=87=86=E7=A1=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/DeDrag/index.vue | 10 +++++++--- .../src/components/canvas/components/Editor/index.vue | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue index 0050af25ec..33b186f51b 100644 --- a/frontend/src/components/DeDrag/index.vue +++ b/frontend/src/components/DeDrag/index.vue @@ -1254,11 +1254,15 @@ export default { // this.recordMatrixCurStyle() setTimeout(() => { this.recordMatrixCurShadowStyle() + this.hasMove && this.$store.commit('recordSnapshot', 'handleUp') + // 记录snapshot后 移动已记录设置为false + this.hasMove = false }, 100) + }else{ + this.hasMove && this.$store.commit('recordSnapshot', 'handleUp') + // 记录snapshot后 移动已记录设置为false + this.hasMove = false } - this.hasMove && this.$store.commit('recordSnapshot', 'handleUp') - // 记录snapshot后 移动已记录设置为false - this.hasMove = false removeEvent(document.documentElement, eventsFor.move, this.move) diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue index 1b30868ac8..8e1107895f 100644 --- a/frontend/src/components/canvas/components/Editor/index.vue +++ b/frontend/src/components/canvas/components/Editor/index.vue @@ -1024,7 +1024,7 @@ export default { // 镜像索引有变化 刷新一下矩阵(撤销重做等) snapshotIndex: { handler(newVal, oldVla) { - console.log('snapshotIndexChange:' + newVal) + // console.log('snapshotIndexChange:' + newVal) this.initMatrix() }, deep: true