feat: md格式渲染
This commit is contained in:
@ -93,6 +93,9 @@ export default function useChatHandler({ initSse }): UseChatHandlerReturn {
|
|||||||
placement: 'start',
|
placement: 'start',
|
||||||
variant: 'borderless',
|
variant: 'borderless',
|
||||||
style: ROLE_STYLE,
|
style: ROLE_STYLE,
|
||||||
|
messageRender: (message: string) => {
|
||||||
|
return <div v-html={md.render(message)} />
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user