From 48ea9c0d8154d94bce4c3fc583f88022c5aae7db Mon Sep 17 00:00:00 2001 From: bighuixiang <472705331@qq.com> Date: Mon, 23 Jun 2025 00:44:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E5=B1=82=E8=AE=BE=E7=BD=AE=E6=96=B9=E6=B3=95=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=A3=B0=E6=98=8E=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js b/src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js index 186ffab9..b2262b78 100644 --- a/src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js +++ b/src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js @@ -333,7 +333,7 @@ export class BatchInitializeRedGreenModeCommand extends Command { */ async _setupBackgroundLayer(backgroundLayer, clothingImage) { let backgroundObject = backgroundLayer.fabricObject; - const { object } = findObjectById(this.canvas, backgroundObject.id); + let { object } = findObjectById(this.canvas, backgroundObject.id); if (!object) { // 创建白色背景矩形