Procházet zdrojové kódy

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

xieyonghong před 3 roky
rodič
revize
3950258193
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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]);