perf: 调整
This commit is contained in:
@ -25,7 +25,7 @@ export default function useChatHandler(): UseChatHandlerReturn {
|
||||
const { copy } = useClipboard();
|
||||
|
||||
const conversationList = ref<any[]>([]);
|
||||
const generateLoading = ref<Boolean>(false);
|
||||
const generateLoading = ref<boolean>(false);
|
||||
const currentTaskId = ref<string | null>(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 || '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user