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