perf: 生成对话框时机

This commit is contained in:
archer
2023-04-23 14:07:17 +08:00
parent 9682c82713
commit c2c73ed23c
25 changed files with 299 additions and 327 deletions

View File

@@ -1,5 +1,5 @@
import React, { useEffect } from 'react';
import { Card } from '@chakra-ui/react';
import { Card, Box, Link } from '@chakra-ui/react';
import Markdown from '@/components/Markdown';
import { useMarkdown } from '@/hooks/useMarkdown';
import { useRouter } from 'next/router';
@@ -15,9 +15,20 @@ const Home = () => {
}, [inviterId]);
return (
<Card p={5} lineHeight={2}>
<Markdown source={data} isChatting={false} />
</Card>
<>
<Card p={5} lineHeight={2}>
<Markdown source={data} isChatting={false} />
</Card>
<Card p={5} mt={4} textAlign={'center'}>
<Box>
{/* <Link href="https://beian.miit.gov.cn/" target="_blank">
浙B2-20080101
</Link> */}
</Box>
<Box>Made by FastGpt Team.</Box>
</Card>
</>
);
};