From 6a543e36b43be7fb46fb5f2ae1490d087c1ccbe5 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:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=20=E6=97=A9=E6=95=99=20?= =?UTF-8?q?=E5=92=8C=20=E7=99=BE=E7=A7=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Interaction/templateStoryService.ts | 11 +++- components/ChatInputBox/ChatInputBox.tsx | 52 +++++++++++-------- 2 files changed, 40 insertions(+), 23 deletions(-) diff --git a/app/service/Interaction/templateStoryService.ts b/app/service/Interaction/templateStoryService.ts index c946d4b..754cf41 100644 --- a/app/service/Interaction/templateStoryService.ts +++ b/app/service/Interaction/templateStoryService.ts @@ -69,12 +69,21 @@ export const useTemplateStoryServiceHook = (): UseTemplateStoryService => { const templates = await templateStoryUseCase.getTemplateStoryList(); templates.forEach(template => { - if (template.template_id === '69') { + if (template.id === 'f944abad-f42b-4899-b54a-a6beb9d27805') { template.freeInputItem = { user_tips: "How is coffee made?", constraints: "", free_input_text: "" }; + template.storyRole = []; + } + if (template.id === 'e7438cd8-a23d-4974-8cde-13b5671b410c') { + template.freeInputItem = { + user_tips: "Input an English word you wanna learn", + constraints: "", + free_input_text: "" + }; + template.storyItem = []; } }); diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index 7d18121..861d103 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -672,6 +672,36 @@ const RenderTemplateStoryMode = ({ )} + {/** 自由输入文字 */} + {(selectedTemplate?.freeInputItem) && ( +