mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +00:00
Remove useAxios debug loggin
This commit is contained in:
parent
3a77d5a777
commit
33efdd3c44
1 changed files with 0 additions and 4 deletions
|
@ -10,8 +10,6 @@ export function useAxios<D>(config: AxiosRequestConfig<D> = {}, data?: FestaLogi
|
||||||
|
|
||||||
return useMemo(
|
return useMemo(
|
||||||
() => {
|
() => {
|
||||||
console.debug(config, login)
|
|
||||||
|
|
||||||
const ax = axios.create({
|
const ax = axios.create({
|
||||||
...config,
|
...config,
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -19,8 +17,6 @@ export function useAxios<D>(config: AxiosRequestConfig<D> = {}, data?: FestaLogi
|
||||||
Authorization: login ? `Bearer ${login.token}` : false,
|
Authorization: login ? `Bearer ${login.token}` : false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
console.debug(ax)
|
|
||||||
|
|
||||||
return ax
|
return ax
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue