From 55974e1f90f277097fb90be074ca1565b5a32573 Mon Sep 17 00:00:00 2001 From: guhaomine <18380425155@163.com> Date: Mon, 26 Feb 2024 18:07:26 +0800 Subject: [PATCH] fix: clearModel --- frontend/image-tool/src/businessNew/common/Editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/image-tool/src/businessNew/common/Editor.ts b/frontend/image-tool/src/businessNew/common/Editor.ts index 8ec67811..d3d5bf9c 100644 --- a/frontend/image-tool/src/businessNew/common/Editor.ts +++ b/frontend/image-tool/src/businessNew/common/Editor.ts @@ -123,8 +123,8 @@ export default class Editor extends BaseEditor { if (!model || !model.code || model.state !== LoadStatus.COMPLETE) return; const result = this.dataManager.hasModelResult(model.code, frame); if (result) { - // api.clearModel([+frame.id], model.recordId); this.addModelData(model.code); + api.clearModel([+frame.id], model.recordId); } else { this.runModel(); }