This commit is contained in:
2025-06-06 11:02:16 +08:00
parent 82e076eb5c
commit c35c0bf444
2 changed files with 2 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ export class DOStage {
_notes.push(notes[i]) _notes.push(notes[i])
} }
const dataUndo: DataUndo = { index, show, notes: _notes } const dataUndo: DataUndo = { index, show, notes: _notes }
console.log("add_undo >>>>>>>>>>>>>>>>>>>>>>>>>>>>", JSON.stringify(dataUndo)) // console.log("add_undo >>>>>>>>>>>>>>>>>>>>>>>>>>>>", JSON.stringify(dataUndo))
this.data.undos.push(dataUndo) this.data.undos.push(dataUndo)
StorageManager.getInstance().onStageChanged() StorageManager.getInstance().onStageChanged()
} }

View File

@@ -339,7 +339,7 @@ export class Stage extends Laya.Script {
onClickUndo(): void { onClickUndo(): void {
const undo = this.data.pop_undo() const undo = this.data.pop_undo()
if (undo) { if (undo) {
console.log("onClickUndo>>>>", JSON.stringify(undo)) // console.log("onClickUndo>>>>", JSON.stringify(undo))
this.selectedBlock = this.blocks[undo.index] this.selectedBlock = this.blocks[undo.index]
this.onApplyBlock(this.selectedBlock) this.onApplyBlock(this.selectedBlock)
if (undo.notes && undo.notes.length > 0) { if (undo.notes && undo.notes.length > 0) {