Parcourir la source

feat:conflict

ananzhusen il y a 1 an
Parent
commit
cf78a2469f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
   },