提交 e9acd386 authored 作者: wangjiahao's avatar wangjiahao

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

上级 9fbfde23
......@@ -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)
......
......@@ -1024,7 +1024,7 @@ export default {
// 镜像索引有变化 刷新一下矩阵(撤销重做等)
snapshotIndex: {
handler(newVal, oldVla) {
console.log('snapshotIndexChange:' + newVal)
// console.log('snapshotIndexChange:' + newVal)
this.initMatrix()
},
deep: true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论