瀏覽代碼

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]);