Преглед изворни кода

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

xieyonghong пре 3 година
родитељ
комит
3950258193
1 измењених фајлова са 1 додато и 1 уклоњено
  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]);