From 6e1b238f78ed78c7c9f218d2893c016a96ec17c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Mon, 8 Sep 2025 16:34:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=20saveScript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/Interaction/ScriptService.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/service/Interaction/ScriptService.ts b/app/service/Interaction/ScriptService.ts index 0fdc306..2c4c231 100644 --- a/app/service/Interaction/ScriptService.ts +++ b/app/service/Interaction/ScriptService.ts @@ -142,7 +142,7 @@ export const useScriptService = (): UseScriptService => { }); // 自动保存剧本到项目 - await scriptEditUseCase.saveScript((projectId||project_id) as string); + // await scriptEditUseCase.saveScript((projectId||project_id) as string); } catch (error) { console.error("生成剧本失败:", error); throw error; @@ -242,9 +242,9 @@ export const useScriptService = (): UseScriptService => { // 更新解析后的故事详情 const storyDetails = scriptEditUseCase.getStoryDetails(); // 如果有项目ID,则保存剧本 - if (projectId) { - await scriptEditUseCase.saveScript(projectId); - } + // if (projectId) { + // await scriptEditUseCase.saveScript(projectId); + // } } }, [scriptEditUseCase, projectId]); @@ -458,9 +458,9 @@ export const useScriptService = (): UseScriptService => { ); // 如果有项目ID,则保存增强后的剧本 - if (projectId) { - await scriptEditUseCase.saveScript(projectId); - } + // if (projectId) { + // await scriptEditUseCase.saveScript(projectId); + // } } catch (error) { console.error("增强剧本失败:", error); throw error;