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 || '';