Explorar o código

feat:conflict

ananzhusen hai 1 ano
pai
achega
cf78a2469f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
   },