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;