From 67f59f0b83e58d1c286bdaa49a36cfd62877ad16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=BF=97=E5=86=9B?= <543024265@qq.com> Date: Wed, 10 Sep 2025 20:58:38 +0800 Subject: [PATCH] =?UTF-8?q?refactor(xt-chat):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E5=80=BC=E5=92=8C=E6=8E=A5=E5=8F=A3=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -将 EnumTeamRunStatus 枚举中的部分值进行重命名 - 更新了 UseChatHandlerOptions 接口中的方法名称 - 这些更改统一了命名风格,提高了代码的可读性和维护性 --- src/components/xt-chat/chat-view/constants.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/xt-chat/chat-view/constants.ts b/src/components/xt-chat/chat-view/constants.ts index b9f6fc9..39d154f 100644 --- a/src/components/xt-chat/chat-view/constants.ts +++ b/src/components/xt-chat/chat-view/constants.ts @@ -14,12 +14,12 @@ export interface UseChatHandlerReturn { senderRef?: Ref } export enum EnumTeamRunStatus { - TeamRunStarted = 'TeamRunStarted', // 对话开始 + TeamRunStarted = 'TaskRunStarted', // 对话开始 TeamRunResponseContent = 'TeamRunResponseContent', // 对话执行中 - TeamRunCompleted = 'TeamRunCompleted', // 对话完成 - RunStarted = 'RunStarted', // l2开始运行 - RunResponseContent = 'RunResponseContent', // l2执行中 - RunCompleted = 'RunCompleted', // l2完成 + TeamRunCompleted = 'TaskRunCompleted', // 对话完成 + RunStarted = 'L2Started', // l2开始运行 + RunResponseContent = 'L2RunContent', // l2执行中 + RunCompleted = 'L2Completed', // l2完成 } export interface UseChatHandlerOptions { initSse: (inputInfo: CHAT.TInputInfo) => Promise; // 明确 initSse 带参 @@ -54,4 +54,4 @@ export const FILE_TYPE_MAP = { [FILE_TYPE.topic_only]: '排期&选题', [FILE_TYPE.topic_with_content]: '选题&内容稿件', [FILE_TYPE.content_only]: '内容稿件', -} \ No newline at end of file +}