perf: 走查问题调整

This commit is contained in:
rd
2025-08-29 14:52:04 +08:00
parent 8b8b1ecb88
commit cbcf3f216f
5 changed files with 26 additions and 25 deletions

View File

@ -26,8 +26,6 @@ export default {
typographer: true, typographer: true,
}); });
console.log(props.rightViewData)
const dataSource = computed(() => { const dataSource = computed(() => {
return props.rightViewData.find((v) => v.task_type === '任务管理') ?? {}; return props.rightViewData.find((v) => v.task_type === '任务管理') ?? {};
}); });

View File

@ -39,7 +39,7 @@ export const ROLE_STYLE = {
export const ANSWER_STYLE = { export const ANSWER_STYLE = {
...ROLE_STYLE, ...ROLE_STYLE,
paddingLeft: '12px', paddingLeft: '14px',
borderLeft: '1px solid #E6E6E8', borderLeft: '1px solid #E6E6E8',
position: 'relative', position: 'relative',
left: '6px', left: '6px',

View File

@ -149,7 +149,7 @@ export default {
return () => ( return () => (
<div class="chat-view-wrap w-full h-full flex"> <div class="chat-view-wrap w-full h-full flex">
<section class="flex-1 flex flex-col pt-20px justify-center relative px-16px"> <section class="flex-1 flex flex-col pt-20px justify-center relative pl-16px pr-2px">
<div class="flex-1 overflow-hidden pb-20px"> <div class="flex-1 overflow-hidden pb-20px">
<BubbleList <BubbleList
ref={bubbleListRef} ref={bubbleListRef}

View File

@ -63,7 +63,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
[LOADING_ROLE]: { [LOADING_ROLE]: {
placement: 'start', placement: 'start',
variant: 'borderless', variant: 'borderless',
style: { ...ROLE_STYLE, paddingLeft: '12px' }, style: { ...ROLE_STYLE, paddingLeft: '20px' },
}, },
[INTELLECTUAL_THINKING_ROLE]: { [INTELLECTUAL_THINKING_ROLE]: {
placement: 'start', placement: 'start',
@ -208,7 +208,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
const { node, output, runStatus, isCollapse = true, customRender, teamRunTaskId } = data; const { node, output, runStatus, isCollapse = true, customRender, teamRunTaskId } = data;
const isRulCompleted = runStatus === EnumTeamRunStatus.RunCompleted; const isRulCompleted = runStatus === EnumTeamRunStatus.RunCompleted;
let outputEleClass: string = `thought-chain-output border-l-#E6E6E8 border-l-1px pl-12px relative left-6px mb-4px`; let outputEleClass: string = `thought-chain-output border-l-#E6E6E8 border-l-1px pl-12px relative left-8px mb-4px`;
!isLastRunTask(data) && (outputEleClass += ' hasLine pb-12px pt-4px'); !isLastRunTask(data) && (outputEleClass += ' hasLine pb-12px pt-4px');
return ( return (
@ -308,15 +308,17 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
rightViewData.value = extra_data.data; rightViewData.value = extra_data.data;
} }
_targetTask.content.customRender = () => ( _targetTask.content.customRender = () => {
const _targetData = extra_data?.data.find((item: any) => item.task_type === '任务管理')
return (
<> <>
<div v-html={md.render(output)} /> <div v-html={md.render(output)} />
{extra_data && ( {_targetData && (
<div class="file-card mt-10px"> <div class="file-card mt-10px">
<IconFile class="w-24px h-24px mr-16px color-#6D4CFE" /> <IconFile class="w-24px h-24px mr-16px color-#6D4CFE" />
<div> <div>
<TextOverTips <TextOverTips
context={FILE_TYPE_MAP?.[extra_data.data?.file_type] ?? '-'} context={FILE_TYPE_MAP?.[_targetData.file_type] ?? '-'}
class="font-family-medium color-#211F24 text-14px font-400 lh-22px mb-4px" class="font-family-medium color-#211F24 text-14px font-400 lh-22px mb-4px"
/> />
<span class="color-#939499 font-family-regular text-12px font-400 lh-22px"> <span class="color-#939499 font-family-regular text-12px font-400 lh-22px">
@ -327,6 +329,8 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
)} )}
</> </>
); );
}
} else { } else {
_targetTask.content.teamRunStatus = EnumTeamRunStatus.TeamRunCompleted; _targetTask.content.teamRunStatus = EnumTeamRunStatus.TeamRunCompleted;
} }

View File

@ -35,7 +35,6 @@ export default {
watch( watch(
() => props.modelValue, () => props.modelValue,
(newValue) => { (newValue) => {
console.log(newValue);
localSearchValue.value = newValue || ''; localSearchValue.value = newValue || '';
}, },
); );