chore: fix typescript type hint

This commit is contained in:
JaguarJack
2023-03-11 11:13:26 +08:00
parent 9dada7428a
commit a6a671def5
10 changed files with 72 additions and 54 deletions

View File

@@ -153,7 +153,8 @@ class Http {
*
*/
public interceptorsOfRequest(): void {
this.request.interceptors.request.use(function (config: AxiosRequestConfig) {
// @ts-ignore
this.request.interceptors.request.use((config: AxiosRequestConfig) => {
const token = getAuthToken()
if (token) {
if (!config.headers) {