feat: 会话详情

This commit is contained in:
rd
2025-08-27 18:07:36 +08:00
parent 0406dea56f
commit 892704c592
4 changed files with 36 additions and 15 deletions

View File

@ -24,11 +24,11 @@ import {
QUESTION_ROLE,
ANSWER_ROLE,
INTELLECTUAL_THINKING_ROLE,
FILE_ROLE,
LOADING_ROLE,
THOUGHT_ROLE,
ROLE_STYLE,
EnumTeamRunStatus,
REMOTE_USER_ROLE,
REMOTE_ASSISTANT_ROLE,
FILE_TYPE_MAP,
} from './constants';
import type { UseChatHandlerReturn } from './constants';
@ -79,16 +79,21 @@ export default function useChatHandler({ initSse }): UseChatHandlerReturn {
},
style: ROLE_STYLE,
},
[THOUGHT_ROLE]: {
placement: 'start',
variant: 'borderless',
style: ROLE_STYLE,
},
[QUESTION_ROLE]: {
placement: 'end',
shape: 'round',
style: ROLE_STYLE,
},
[REMOTE_USER_ROLE]: {
placement: 'end',
shape: 'round',
style: ROLE_STYLE,
},
[REMOTE_ASSISTANT_ROLE]: {
placement: 'start',
variant: 'borderless',
style: ROLE_STYLE,
},
};
// 下载处理
@ -298,7 +303,7 @@ export default function useChatHandler({ initSse }): UseChatHandlerReturn {
</>
);
}
_targetTask.footer = () => {
return (
<div class="flex items-center">