refactor: 知识块都改为markdown渲染 (#3389)
This commit is contained in:
parent
c995bccef8
commit
b4933471cd
@ -10,6 +10,7 @@ import dynamic from 'next/dynamic';
|
|||||||
import MyBox from '@fastgpt/web/components/common/MyBox';
|
import MyBox from '@fastgpt/web/components/common/MyBox';
|
||||||
import { SearchScoreTypeEnum, SearchScoreTypeMap } from '@fastgpt/global/core/dataset/constants';
|
import { SearchScoreTypeEnum, SearchScoreTypeMap } from '@fastgpt/global/core/dataset/constants';
|
||||||
import type { readCollectionSourceBody } from '@/pages/api/core/dataset/collection/read';
|
import type { readCollectionSourceBody } from '@/pages/api/core/dataset/collection/read';
|
||||||
|
import Markdown from '@/components/Markdown';
|
||||||
|
|
||||||
const InputDataModal = dynamic(() => import('@/pages/dataset/detail/components/InputDataModal'));
|
const InputDataModal = dynamic(() => import('@/pages/dataset/detail/components/InputDataModal'));
|
||||||
|
|
||||||
@ -173,8 +174,8 @@ const QuoteItem = ({
|
|||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Box flex={'1 0 0'}>
|
<Box flex={'1 0 0'}>
|
||||||
<Box color={'black'}>{quoteItem.q}</Box>
|
<Markdown source={quoteItem.q} />
|
||||||
<Box color={'myGray.600'}>{quoteItem.a}</Box>
|
<Markdown source={quoteItem.a} />
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Flex
|
<Flex
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user