Przeglądaj źródła

fix: 增加第三方登录token获取方式

xieyonghong 3 lat temu
rodzic
commit
bb16eae4bc
1 zmienionych plików z 1 dodań i 1 usunięć
  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' && Token.get()) {
+    if (isLogin === 'yes' && localStorage.getItem('X-Access-Token')) {
       getDetail();
     }
   }, [isLogin]);