深度画布测试保存

This commit is contained in:
lzp
2026-03-19 11:32:23 +08:00
parent cb8bee736f
commit 88b3e8cd31
5 changed files with 13 additions and 7 deletions

View File

@@ -92,7 +92,7 @@ export class StateManager {
if (!state) return
this.running.value = true
this.historyIndex.value = index
this.canvasManager.loadJSON(state.canvas, () => {
this.canvasManager.loadJSON(state.canvas).then(() => {
this.event.emit('canvas:undo', state)
this.running.value = false
})
@@ -105,7 +105,7 @@ export class StateManager {
if (!state) return
this.running.value = true
this.historyIndex.value = index
this.canvasManager.loadJSON(state.canvas, () => {
this.canvasManager.loadJSON(state.canvas).then(() => {
this.event.emit('canvas:redo', state)
this.running.value = false
})