mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
fix(仪表板): 修复清空画布回退要两次的问题
This commit is contained in:
parent
da6bbe7ddc
commit
074a3f73b8
@ -38,8 +38,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
recordSnapshot(state) {
|
recordSnapshot(state) {
|
||||||
|
console.log('recordSnapshot')
|
||||||
state.changeTimes++
|
state.changeTimes++
|
||||||
store.commit('canvasChange')
|
|
||||||
// 添加新的快照
|
// 添加新的快照
|
||||||
state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData)
|
state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData)
|
||||||
state.snapshotStyleData[state.snapshotIndex] = deepCopy(state.canvasStyleData)
|
state.snapshotStyleData[state.snapshotIndex] = deepCopy(state.canvasStyleData)
|
||||||
|
Loading…
Reference in New Issue
Block a user