Procházet zdrojové kódy

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

xieyonghong před 3 roky
rodič
revize
bb16eae4bc
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' && Token.get()) {
+    if (isLogin === 'yes' && localStorage.getItem('X-Access-Token')) {
       getDetail();
     }
   }, [isLogin]);