画布新增图层撤回问题

This commit is contained in:
李志鹏
2025-10-17 15:18:26 +08:00
parent 28ee3f073b
commit 90b4de16d8

View File

@@ -70,7 +70,7 @@ export class AddLayerCommand extends Command {
undo() {
// 从图层列表删除该图层
this.layers.value = this.beforeLayers;
this.layers.value = [...this.beforeLayers];
// 恢复原活动图层
this.activeLayerId.value = this.oldActiveLayerId;