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) { // 创建白色背景矩形