mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-18 09:24:03 +00:00
添加AI对话时隐藏头部的功能,主要是适配移动端 (#1874)
This commit is contained in:
@@ -49,12 +49,14 @@ const OutLink = ({ appName, appIntro, appAvatar }: Props) => {
|
|||||||
shareId = '',
|
shareId = '',
|
||||||
chatId = '',
|
chatId = '',
|
||||||
showHistory = '1',
|
showHistory = '1',
|
||||||
|
showHead = '1',
|
||||||
authToken,
|
authToken,
|
||||||
...customVariables
|
...customVariables
|
||||||
} = router.query as {
|
} = router.query as {
|
||||||
shareId: string;
|
shareId: string;
|
||||||
chatId: string;
|
chatId: string;
|
||||||
showHistory: '0' | '1';
|
showHistory: '0' | '1';
|
||||||
|
showHead: '0' | '1',
|
||||||
authToken: string;
|
authToken: string;
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
@@ -294,12 +296,16 @@ const OutLink = ({ appName, appIntro, appAvatar }: Props) => {
|
|||||||
flexDirection={'column'}
|
flexDirection={'column'}
|
||||||
>
|
>
|
||||||
{/* header */}
|
{/* header */}
|
||||||
|
{showHead === "1" ? (
|
||||||
<ChatHeader
|
<ChatHeader
|
||||||
appAvatar={chatData.app.avatar}
|
appAvatar={chatData.app.avatar}
|
||||||
appName={chatData.app.name}
|
appName={chatData.app.name}
|
||||||
history={chatData.history}
|
history={chatData.history}
|
||||||
showHistory={showHistory === '1'}
|
showHistory={showHistory === '1'}
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
null
|
||||||
|
)}
|
||||||
{/* chat box */}
|
{/* chat box */}
|
||||||
<Box flex={1}>
|
<Box flex={1}>
|
||||||
<ChatBox
|
<ChatBox
|
||||||
|
Reference in New Issue
Block a user