File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ import { cn } from '@/lib/utils'
33import type { HTMLAttributes } from ' vue'
44import { marked } from ' marked'
55import { computed } from ' vue'
6+ import { AgentType } from ' @/utils/enum'
7+
68
79interface BubbleProps {
810 type: ' agent' | ' user'
9- agentType? : ' CoderAgent ' | ' WriterAgent '
11+ agentType? : AgentType
1012 class? : HTMLAttributes [' class' ]
1113 content: string
1214}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const sendMessage = () => {
3131 <Bubble v-if =" message.msg_type === 'user'" type =" user" :content =" message.content || ''" />
3232 <!-- agent 消息(CoderAgent/WriterAgent,只显示 content) -->
3333 <Bubble v-else-if =" message.msg_type === 'agent'" type =" agent" :agentType =" message.agent_type"
34- :content =" message.content" />
34+ :content =" message.content || '' " />
3535 <!-- 系统消息 -->
3636 <SystemMessage v-else-if =" message.msg_type === 'system'" :content =" message.content || ''"
3737 :type =" message.type" />
You can’t perform that action at this time.
0 commit comments