From ccedd00ea70538ac4cd73c0d7c3382f445444950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Wed, 5 Nov 2025 16:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=B2=E5=8C=96=E5=90=88=E5=B9=B6=E5=9B=BE?= =?UTF-8?q?=E5=B1=82id=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Canvas/CanvasEditor/commands/RasterizeLayerCommand.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/Canvas/CanvasEditor/commands/RasterizeLayerCommand.js b/src/component/Canvas/CanvasEditor/commands/RasterizeLayerCommand.js index 3e9731aa..6b180729 100644 --- a/src/component/Canvas/CanvasEditor/commands/RasterizeLayerCommand.js +++ b/src/component/Canvas/CanvasEditor/commands/RasterizeLayerCommand.js @@ -343,7 +343,7 @@ export class RasterizeLayerCommand extends Command { visible: this.layer.visible, locked: this.layer.locked, opacity: this.layer.opacity, - fabricObjects: [rasterizedImage], + fabricObjects: [], }); // 更新图像对象的图层关联 @@ -353,7 +353,7 @@ export class RasterizeLayerCommand extends Command { layerId: this.rasterizedLayerId, layerName: this.rasterizedLayer.name, }); - + this.rasterizedLayer.fabricObjects = [rasterizedImage.toObject(["id", "layerId", "layerName"])] // 在适当位置添加新的组合图层 this._replaceLayerInStructure();