Merge pull request #6400 from dataease/pr@dev-v2@refactor_redo-unode

refactor: 增加redo、undo画布动作监控并可显示保存按钮
This commit is contained in:
王嘉豪 2023-10-27 13:34:51 +08:00 committed by GitHub
commit dfd0400e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ export const snapshotStore = defineStore('snapshot', {
deepCopy(this.snapshotData[this.snapshotIndex]) || getDefaultCanvasInfo()
// undo 是当前没有记录
this.snapshotPublish(componentSnapshot)
this.styleChangeTimes++
}
},
@ -73,6 +74,7 @@ export const snapshotStore = defineStore('snapshot', {
this.snapshotIndex++
const snapshotInfo = deepCopy(this.snapshotData[this.snapshotIndex])
this.snapshotPublish(snapshotInfo)
this.styleChangeTimes++
}
},
snapshotPublish(snapshotInfo) {