Skip to content

Commit

Permalink
添加AI对话时隐藏头部的功能,主要是适配移动端 (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang-Wan authored Jul 1, 2024
1 parent 3257744 commit e223390
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projects/app/src/pages/chat/share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e223390

Please sign in to comment.