From 4d05697b1c696a120885110ccc13d07aa795b058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Sun, 28 May 2023 17:56:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9ts=20=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/axios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {