Forráskód Böngészése

fix: 增加第三方登录token校验

xieyonghong 3 éve
szülő
commit
3950258193
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/pages/account/Center/bind/index.tsx

+ 1 - 1
src/pages/account/Center/bind/index.tsx

@@ -178,7 +178,7 @@ const Bind = () => {
   }, [window.location.href]);
   }, [window.location.href]);
 
 
   useEffect(() => {
   useEffect(() => {
-    if (isLogin === 'yes') {
+    if (isLogin === 'yes' && Token.get()) {
       getDetail();
       getDetail();
     }
     }
   }, [isLogin]);
   }, [isLogin]);