Parcourir la source

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

xieyonghong il y a 3 ans
Parent
commit
3950258193
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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]);
 
   useEffect(() => {
-    if (isLogin === 'yes') {
+    if (isLogin === 'yes' && Token.get()) {
       getDetail();
     }
   }, [isLogin]);