fix(web): 提交遗漏的文件
This commit is contained in:
@@ -4,12 +4,11 @@ import {fetchEventSource} from '@echofly/fetch-event-source'
|
||||
import {useMount} from 'ahooks'
|
||||
import {Button, Collapse, Flex, Popover, Radio, Typography} from 'antd'
|
||||
import {isEqual, isStrBlank, trim} from 'licia'
|
||||
import markdownIt from 'markdown-it'
|
||||
import {useRef, useState} from 'react'
|
||||
import styled from 'styled-components'
|
||||
import {commonInfo} from '../../util/amis.tsx'
|
||||
import MarkdownRender from '../../util/Markdown.tsx'
|
||||
|
||||
const md = markdownIt({html: true, breaks: true})
|
||||
const ConversationDiv = styled.div`
|
||||
height: calc(100vh - 76px);
|
||||
display: flex;
|
||||
@@ -117,9 +116,9 @@ function Conversation() {
|
||||
messageRender: item => {
|
||||
let content = '', reason = ''
|
||||
if (!isStrBlank(item['reason'])) {
|
||||
reason = `${trim(md.render(item['reason']))}`
|
||||
reason = trim(item['reason'])
|
||||
}
|
||||
content = trim(md.render(item['content']))
|
||||
content = trim(item['content'])
|
||||
return (
|
||||
<div>
|
||||
{isStrBlank(reason)
|
||||
@@ -132,16 +131,12 @@ function Conversation() {
|
||||
key: 0,
|
||||
label: '思考链',
|
||||
children: (
|
||||
<Typography>
|
||||
<div dangerouslySetInnerHTML={{__html: reason}}/>
|
||||
</Typography>
|
||||
<MarkdownRender content={reason}/>
|
||||
),
|
||||
},
|
||||
]}
|
||||
/>}
|
||||
<Typography>
|
||||
<div dangerouslySetInnerHTML={{__html: content}}/>
|
||||
</Typography>
|
||||
<MarkdownRender content={content}/>
|
||||
</div>
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user