瀏覽代碼

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]);