refactor: 知识块都改为markdown渲染 (#3389)

This commit is contained in:
papapatrick
2024-12-16 12:16:44 +08:00
committed by GitHub
parent c995bccef8
commit b4933471cd

View File

@@ -10,6 +10,7 @@ import dynamic from 'next/dynamic';
import MyBox from '@fastgpt/web/components/common/MyBox';
import { SearchScoreTypeEnum, SearchScoreTypeMap } from '@fastgpt/global/core/dataset/constants';
import type { readCollectionSourceBody } from '@/pages/api/core/dataset/collection/read';
import Markdown from '@/components/Markdown';
const InputDataModal = dynamic(() => import('@/pages/dataset/detail/components/InputDataModal'));
@@ -173,8 +174,8 @@ const QuoteItem = ({
</Flex>
<Box flex={'1 0 0'}>
<Box color={'black'}>{quoteItem.q}</Box>
<Box color={'myGray.600'}>{quoteItem.a}</Box>
<Markdown source={quoteItem.q} />
<Markdown source={quoteItem.a} />
</Box>
<Flex