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