去掉 saveScript

This commit is contained in:
北枳 2025-09-08 16:34:15 +08:00
parent 6a543e36b4
commit 6e1b238f78

View File

@ -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) { } catch (error) {
console.error("生成剧本失败:", error); console.error("生成剧本失败:", error);
throw error; throw error;
@ -242,9 +242,9 @@ export const useScriptService = (): UseScriptService => {
// 更新解析后的故事详情 // 更新解析后的故事详情
const storyDetails = scriptEditUseCase.getStoryDetails(); const storyDetails = scriptEditUseCase.getStoryDetails();
// 如果有项目ID则保存剧本 // 如果有项目ID则保存剧本
if (projectId) { // if (projectId) {
await scriptEditUseCase.saveScript(projectId); // await scriptEditUseCase.saveScript(projectId);
} // }
} }
}, [scriptEditUseCase, projectId]); }, [scriptEditUseCase, projectId]);
@ -458,9 +458,9 @@ export const useScriptService = (): UseScriptService => {
); );
// 如果有项目ID则保存增强后的剧本 // 如果有项目ID则保存增强后的剧本
if (projectId) { // if (projectId) {
await scriptEditUseCase.saveScript(projectId); // await scriptEditUseCase.saveScript(projectId);
} // }
} catch (error) { } catch (error) {
console.error("增强剧本失败:", error); console.error("增强剧本失败:", error);
throw error; throw error;