feat: 统一聊天助手头像

- 工作流运行状态、智能体正式聊天与试运行展示助手头像

- 新增默认机器人头像及消息、空状态回退组件
This commit is contained in:
2026-08-03 11:24:12 +08:00
parent dc99d1aa52
commit e3228837f4
12 changed files with 380 additions and 86 deletions

View File

@@ -17,6 +17,7 @@ import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue';
import {
CHAT_DOCUMENT_SUPPORTED_FORMATS,
ChatTimeline,
defaultAssistantAvatar,
} from '@easyflow/common-ui';
import { BrushCleaning } from '@easyflow/icons';
import { copyTextToClipboard } from '@easyflow/utils';
@@ -395,6 +396,7 @@ async function handleReject(payload: ChatTimelineToolApprovalPayload) {
/>
<ChatTimeline
v-else
:assistant-avatar="agent.avatar || defaultAssistantAvatar"
:items="timelineItems"
:document-loader="loadAgentChatDocument"
:image-loader="loadAgentChatImage"