perf: 调整

This commit is contained in:
renxiaodong
2025-08-25 23:09:08 +08:00
parent 6926a43d8a
commit 2ca268d588

View File

@ -25,7 +25,7 @@ export default function useChatHandler(): UseChatHandlerReturn {
const { copy } = useClipboard(); const { copy } = useClipboard();
const conversationList = ref<any[]>([]); const conversationList = ref<any[]>([]);
const generateLoading = ref<Boolean>(false); const generateLoading = ref<boolean>(false);
const currentTaskId = ref<string | null>(null); const currentTaskId = ref<string | null>(null);
const showRightView = ref(false); const showRightView = ref(false);
const rightViewContent = ref(''); const rightViewContent = ref('');
@ -141,9 +141,8 @@ export default function useChatHandler(): UseChatHandlerReturn {
const handleFinalResult = (data: any) => { const handleFinalResult = (data: any) => {
const { run_id, output } = data; const { run_id, output } = data;
if (showRightView) {
showRightView.value = true; showRightView.value = true;
}
const _files = output?.files; const _files = output?.files;
rightViewContent.value = _files?.[0]?.content || ''; rightViewContent.value = _files?.[0]?.content || '';