Просмотр исходного кода

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

xieyonghong 3 лет назад
Родитель
Сommit
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]);