mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
添加AI对话时隐藏头部的功能,主要是适配移动端 (#1874)
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Has been cancelled
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Has been cancelled
This commit is contained in:
parent
3257744c76
commit
e223390231
|
|
@ -49,12 +49,14 @@ const OutLink = ({ appName, appIntro, appAvatar }: Props) => {
|
|||
shareId = '',
|
||||
chatId = '',
|
||||
showHistory = '1',
|
||||
showHead = '1',
|
||||
authToken,
|
||||
...customVariables
|
||||
} = router.query as {
|
||||
shareId: string;
|
||||
chatId: string;
|
||||
showHistory: '0' | '1';
|
||||
showHead: '0' | '1',
|
||||
authToken: string;
|
||||
[key: string]: string;
|
||||
};
|
||||
|
|
@ -294,12 +296,16 @@ const OutLink = ({ appName, appIntro, appAvatar }: Props) => {
|
|||
flexDirection={'column'}
|
||||
>
|
||||
{/* header */}
|
||||
<ChatHeader
|
||||
{showHead === "1" ? (
|
||||
<ChatHeader
|
||||
appAvatar={chatData.app.avatar}
|
||||
appName={chatData.app.name}
|
||||
history={chatData.history}
|
||||
showHistory={showHistory === '1'}
|
||||
/>
|
||||
) : (
|
||||
null
|
||||
)}
|
||||
{/* chat box */}
|
||||
<Box flex={1}>
|
||||
<ChatBox
|
||||
|
|
|
|||
Loading…
Reference in New Issue