第三方登录cookie清除
This commit is contained in:
parent
c491008323
commit
ed2e01aceb
|
|
@ -49,7 +49,7 @@ function OtherLogin({location,main_site_url}){
|
|||
<div className='dfpanel'>
|
||||
{setting.third_party_new.map((item,key)=>{
|
||||
return(
|
||||
key < 4 && <a href={`${item.url}`} onClick={()=>{cookie.save("go_page",`${main_site_url}${location.pathname}`);window.location.href=`${item.url}`;}} className="ml15 mr15">
|
||||
key < 4 && <a onClick={()=>{cookie.remove("go_page");cookie.save("go_page",`${main_site_url}${location.pathname}`,{ expires: 0, path: `/` });window.location.href=`${item.url}`;}} className="ml15 mr15">
|
||||
<Tooltip overlayClassName='theTop' title={`使用${item.name === "qq" ? "QQ":item.name === "wechat" ? "微信" : item.name}账号登录`}>
|
||||
<img src={renderLogo(item.name)} width={item.name==="ccf"?"50px":"40px"} alt={`${item.name}登录`}/>
|
||||
</Tooltip>
|
||||
|
|
@ -62,7 +62,7 @@ function OtherLogin({location,main_site_url}){
|
|||
<Popover placement="left" content={<div className='thirdPanel'>
|
||||
{
|
||||
setting.third_party_new.map((i,k)=>{
|
||||
return k>=4 &&<a href={`${i.url}`} onClick={()=>{cookie.save("go_page",`${main_site_url}${location.pathname}`);window.location.href=`${i.url}`;}}>
|
||||
return k>=4 &&<a onClick={()=>{cookie.remove("go_page");cookie.save("go_page",`${main_site_url}${location.pathname}`,{ expires: 0, path: `/` });window.location.href=`${i.url}`;}}>
|
||||
<Tooltip overlayClassName='theTop' title={`使用${i.name === "qq" ? "QQ":i.name === "wechat" ? "微信" : i.name}账号登录`}>
|
||||
<img src={renderLogo(i.name)} height={35}/>
|
||||
</Tooltip>
|
||||
|
|
|
|||
Loading…
Reference in New Issue