소스 검색

feat:conflict

ananzhusen 1 년 전
부모
커밋
cf78a2469f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/http.ts

+ 1 - 1
src/http.ts

@@ -11,7 +11,7 @@ axios.defaults.withCredentials = false;
 axios.interceptors.request.use(
   (config: any) => {
     config.headers.Authorization =
-      'Bearer ' + ( getCookie('token') || '');
+      'Bearer ' + ( getCookie('token') || new URLSearchParams(location.search).get('token') || '');
 
     return config;
   },