在iframe中则不请求接口和写入email
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user