forked from github/dataease
Merge pull request #6400 from dataease/pr@dev-v2@refactor_redo-unode
refactor: 增加redo、undo画布动作监控并可显示保存按钮
This commit is contained in:
commit
dfd0400e23
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user