mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
perf: config fe
This commit is contained in:
@@ -394,7 +394,7 @@ const ChatBox = (
|
||||
|
||||
const showEmpty = useMemo(
|
||||
() =>
|
||||
feConfigs.show_emptyChat &&
|
||||
feConfigs?.show_emptyChat &&
|
||||
showEmptyIntro &&
|
||||
chatHistory.length === 0 &&
|
||||
!variableModules?.length &&
|
||||
|
@@ -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}
|
||||
|
Reference in New Issue
Block a user