perf: 主agent样式调整
This commit is contained in:
@ -86,9 +86,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
|
||||
shape: 'round',
|
||||
style: ROLE_STYLE,
|
||||
messageRender: (message: string) => {
|
||||
return <div class="max-w-400px">
|
||||
{message}
|
||||
</div>;
|
||||
return <div style={{ 'max-width': 'var(--max-question-width)' }}>{message}</div>;
|
||||
},
|
||||
},
|
||||
[REMOTE_USER_ROLE]: {
|
||||
@ -96,9 +94,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
|
||||
shape: 'round',
|
||||
style: ROLE_STYLE,
|
||||
messageRender: (message: string) => {
|
||||
return <div class="max-w-600px">
|
||||
{message}
|
||||
</div>;
|
||||
return <div style={{ 'max-width': 'var(--max-question-width)' }}>{message}</div>;
|
||||
},
|
||||
},
|
||||
[REMOTE_ASSISTANT_ROLE]: {
|
||||
@ -106,14 +102,16 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
|
||||
variant: 'borderless',
|
||||
style: ROLE_STYLE,
|
||||
messageRender: (message: string) => {
|
||||
return <div class="max-w-600px markdown-wrap" v-html={md.render(message)} />;
|
||||
return (
|
||||
<div class="markdown-wrap" style={{ 'max-width': 'var(--max-content-width)' }} v-html={md.render(message)} />
|
||||
);
|
||||
},
|
||||
footer: (params) => {
|
||||
const { content, item } = params as { content: string; item: MESSAGE.Answer };
|
||||
const isShow = conversationList.value[conversationList.value.length - 1].run_id === item.run_id;
|
||||
return (
|
||||
<div class="flex items-center">
|
||||
<Tooltip title="复制" onClick={() => onCopy(content)} align={{ offset: [0, 4] }} >
|
||||
<Tooltip title="复制" onClick={() => onCopy(content)} align={{ offset: [0, 4] }}>
|
||||
<div class="action-box">
|
||||
<IconCopy size={16} class="color-#737478" />
|
||||
</div>
|
||||
@ -318,7 +316,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
|
||||
// 含有思考过程,折叠思考过程,展示结果
|
||||
if (_hasRunTask) {
|
||||
setRunTaskCollapse(teamRunTaskId, false);
|
||||
const _targetData = extra_data?.data?.find((item: any) => item.task_type === '任务管理')
|
||||
const _targetData = extra_data?.data?.find((item: any) => item.task_type === '任务管理');
|
||||
if (_targetData) {
|
||||
showRightView.value = true;
|
||||
rightViewDataSource.value = extra_data.data;
|
||||
@ -345,8 +343,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
};
|
||||
} else {
|
||||
_targetTask.content.teamRunStatus = EnumTeamRunStatus.TeamRunCompleted;
|
||||
}
|
||||
@ -418,6 +415,6 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
|
||||
conversationList,
|
||||
showRightView,
|
||||
rightViewDataSource,
|
||||
rightPreviewData
|
||||
rightPreviewData,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user