From 2ca268d588435832f995c82a2a860a9905d4c35f Mon Sep 17 00:00:00 2001 From: renxiaodong <1344903914@qq.com> Date: Mon, 25 Aug 2025 23:09:08 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/xt-chat/chat-view/useChatHandler.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/xt-chat/chat-view/useChatHandler.tsx b/src/components/xt-chat/chat-view/useChatHandler.tsx index ad19154..ffddd49 100644 --- a/src/components/xt-chat/chat-view/useChatHandler.tsx +++ b/src/components/xt-chat/chat-view/useChatHandler.tsx @@ -25,7 +25,7 @@ export default function useChatHandler(): UseChatHandlerReturn { const { copy } = useClipboard(); const conversationList = ref([]); - const generateLoading = ref(false); + const generateLoading = ref(false); const currentTaskId = ref(null); const showRightView = ref(false); const rightViewContent = ref(''); @@ -141,9 +141,8 @@ export default function useChatHandler(): UseChatHandlerReturn { const handleFinalResult = (data: any) => { const { run_id, output } = data; - if (showRightView) { - showRightView.value = true; - } + showRightView.value = true; + const _files = output?.files; rightViewContent.value = _files?.[0]?.content || '';