fix
This commit is contained in:
@@ -92,7 +92,7 @@ export class StateManager {
|
||||
if (!state) return
|
||||
this.running.value = true
|
||||
this.historyIndex.value = index
|
||||
this.canvasManager.loadJSON(state.canvas).then(() => {
|
||||
this.canvasManager.loadJSON(state.canvas, false).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).then(() => {
|
||||
this.canvasManager.loadJSON(state.canvas, false).then(() => {
|
||||
this.event.emit('canvas:redo', state)
|
||||
this.running.value = false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user