Explorar o código

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

xieyonghong %!s(int64=3) %!d(string=hai) anos
pai
achega
bb16eae4bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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]);