mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
Merge pull request #6400 from dataease/pr@dev-v2@refactor_redo-unode
refactor: 增加redo、undo画布动作监控并可显示保存按钮
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user