perf: config home page

This commit is contained in:
archer
2023-09-01 10:13:57 +08:00
parent 2ae8d43216
commit 68cdf50cb6
15 changed files with 110 additions and 77 deletions

View File

@@ -167,20 +167,20 @@ const Navbar = ({ unread }: { unread: number }) => {
</Link>
</Box>
)}
<MyTooltip label={t('home.Docs')} placement={'right-end'}>
<Box
{...itemStyles}
mb={0}
color={'#9096a5'}
onClick={() => {
window.open(`https://doc.fastgpt.run/docs/intro`);
}}
>
<Badge count={unread}>
{feConfigs?.show_doc && (
<MyTooltip label={t('home.Docs')} placement={'right-end'}>
<Box
{...itemStyles}
mb={0}
color={'#9096a5'}
onClick={() => {
window.open(`https://doc.fastgpt.run/docs/intro`);
}}
>
<MyIcon name={'courseLight'} width={'26px'} height={'26px'} />
</Badge>
</Box>
</MyTooltip>
</Box>
</MyTooltip>
)}
<Language {...itemStyles} />
{feConfigs?.show_git && (
<MyTooltip label={`Git Star: ${gitStar}`} placement={'right-end'}>