fix: 撤销或者重做时,视图矩阵模式记录镜像位置不准确问题

This commit is contained in:
wangjiahao 2021-10-12 14:18:55 +08:00
parent 9fbfde2313
commit e9acd38621
2 changed files with 8 additions and 4 deletions

View File

@ -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)

View File

@ -1024,7 +1024,7 @@ export default {
//
snapshotIndex: {
handler(newVal, oldVla) {
console.log('snapshotIndexChange:' + newVal)
// console.log('snapshotIndexChange:' + newVal)
this.initMatrix()
},
deep: true