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,
});
console.log(props.rightViewData)
const dataSource = computed(() => {
return props.rightViewData.find((v) => v.task_type === '任务管理') ?? {};
});

View File

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

View File

@ -149,7 +149,7 @@ export default {
return () => (
<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">
<BubbleList
ref={bubbleListRef}

View File

@ -63,7 +63,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
[LOADING_ROLE]: {
placement: 'start',
variant: 'borderless',
style: { ...ROLE_STYLE, paddingLeft: '12px' },
style: { ...ROLE_STYLE, paddingLeft: '20px' },
},
[INTELLECTUAL_THINKING_ROLE]: {
placement: 'start',
@ -208,7 +208,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
const { node, output, runStatus, isCollapse = true, customRender, teamRunTaskId } = data;
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');
return (
@ -308,25 +308,29 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
rightViewData.value = extra_data.data;
}
_targetTask.content.customRender = () => (
<>
<div v-html={md.render(output)} />
{extra_data && (
<div class="file-card mt-10px">
<IconFile class="w-24px h-24px mr-16px color-#6D4CFE" />
<div>
<TextOverTips
context={FILE_TYPE_MAP?.[extra_data.data?.file_type] ?? '-'}
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">
{exactFormatTime(dayjs().unix())}
</span>
_targetTask.content.customRender = () => {
const _targetData = extra_data?.data.find((item: any) => item.task_type === '任务管理')
return (
<>
<div v-html={md.render(output)} />
{_targetData && (
<div class="file-card mt-10px">
<IconFile class="w-24px h-24px mr-16px color-#6D4CFE" />
<div>
<TextOverTips
context={FILE_TYPE_MAP?.[_targetData.file_type] ?? '-'}
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">
{exactFormatTime(dayjs().unix())}
</span>
</div>
</div>
</div>
)}
</>
);
)}
</>
);
}
} else {
_targetTask.content.teamRunStatus = EnumTeamRunStatus.TeamRunCompleted;
}