perf: config fe

This commit is contained in:
archer
2023-07-19 11:17:08 +08:00
parent 47af8d1c3d
commit c46a37541c
10 changed files with 52 additions and 50 deletions

View File

@@ -394,7 +394,7 @@ const ChatBox = (
const showEmpty = useMemo(
() =>
feConfigs.show_emptyChat &&
feConfigs?.show_emptyChat &&
showEmptyIntro &&
chatHistory.length === 0 &&
!variableModules?.length &&

View File

@@ -42,7 +42,7 @@ const Navbar = ({ unread }: { unread: number }) => {
link: `/kb/list`,
activeLink: ['/kb/list', '/kb/detail']
},
...(feConfigs.show_appStore
...(feConfigs?.show_appStore
? [
{
label: '市场',
@@ -143,7 +143,7 @@ const Navbar = ({ unread }: { unread: number }) => {
</Link>
</Box>
)}
{feConfigs.show_git && (
{feConfigs?.show_git && (
<Box>
<Link
as={NextLink}