diff --git a/src/api/axios.ts b/src/api/axios.ts index 95603d40..af60ec58 100644 --- a/src/api/axios.ts +++ b/src/api/axios.ts @@ -38,7 +38,7 @@ axiosInstance.interceptors.request.use( config.headers = { ...config.headers, [userInfo[SystemStoreUserInfoEnum.TOKEN_NAME] || 'token']: userInfo[SystemStoreUserInfoEnum.USER_TOKEN] || '' - } + } as InternalAxiosRequestConfig['headers'] return config }, (err: AxiosError) => {