diff --git a/dify_1.11.1/web/app/components/base/iframe-postmessage.tsx b/dify_1.11.1/web/app/components/base/iframe-postmessage.tsx index 152f9e9e..abc97e7d 100644 --- a/dify_1.11.1/web/app/components/base/iframe-postmessage.tsx +++ b/dify_1.11.1/web/app/components/base/iframe-postmessage.tsx @@ -79,6 +79,8 @@ const IframePostMessage = () => { */ const fetchAndStoreEmail = async () => { try { + if (typeof window !== 'undefined' && window.parent !== window) + return const profile = await get<{ email: string }>('/account/profile') const email = profile?.email || '' if (email) {