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

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

xieyonghong пре 3 година
родитељ
комит
bb16eae4bc
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' && Token.get()) {
+    if (isLogin === 'yes' && localStorage.getItem('X-Access-Token')) {
       getDetail();
     }
   }, [isLogin]);