diff --git a/src/modules/loginRegister/component/otherLogin.jsx b/src/modules/loginRegister/component/otherLogin.jsx index cbdd25acb..3ee8e4fd4 100644 --- a/src/modules/loginRegister/component/otherLogin.jsx +++ b/src/modules/loginRegister/component/otherLogin.jsx @@ -49,7 +49,7 @@ function OtherLogin({location,main_site_url}){
{setting.third_party_new.map((item,key)=>{ return( - key < 4 && {cookie.save("go_page",`${main_site_url}${location.pathname}`);window.location.href=`${item.url}`;}} className="ml15 mr15"> + key < 4 && {cookie.remove("go_page");cookie.save("go_page",`${main_site_url}${location.pathname}`,{ expires: 0, path: `/` });window.location.href=`${item.url}`;}} className="ml15 mr15"> {`${item.name}登录`}/ @@ -62,7 +62,7 @@ function OtherLogin({location,main_site_url}){ { setting.third_party_new.map((i,k)=>{ - return k>=4 &&{cookie.save("go_page",`${main_site_url}${location.pathname}`);window.location.href=`${i.url}`;}}> + return k>=4 &&{cookie.remove("go_page");cookie.save("go_page",`${main_site_url}${location.pathname}`,{ expires: 0, path: `/` });window.location.href=`${i.url}`;}}>