mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-05 06:35:39 +00:00
v4.5.1-2 (#421)
This commit is contained in:
@@ -166,7 +166,10 @@ const OutLink = ({
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
setIdEmbed(window !== parent);
|
||||
if (window !== top) {
|
||||
window.top?.postMessage({ type: 'shareChatReady' }, '*');
|
||||
}
|
||||
setIdEmbed(window !== top);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
@@ -280,7 +283,13 @@ export async function getServerSideProps(context: any) {
|
||||
const authToken = context?.query?.authToken || '';
|
||||
|
||||
return {
|
||||
props: { shareId, chatId, showHistory, authToken, ...(await serviceSideProps(context)) }
|
||||
props: {
|
||||
shareId,
|
||||
chatId,
|
||||
showHistory,
|
||||
authToken,
|
||||
...(await serviceSideProps(context))
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user