Skip to content

Commit

Permalink
types: 修复类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Mar 1, 2023
1 parent 6e6beef commit 297b2c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/axios/service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios, {
AxiosInstance,
AxiosRequestConfig,
InternalAxiosRequestConfig,
AxiosRequestHeaders,
AxiosResponse,
AxiosError
Expand All @@ -24,7 +24,7 @@ const service: AxiosInstance = axios.create({

// request拦截器
service.interceptors.request.use(
(config: AxiosRequestConfig) => {
(config: InternalAxiosRequestConfig) => {
if (
config.method === 'post' &&
(config.headers as AxiosRequestHeaders)['Content-Type'] ===
Expand Down

0 comments on commit 297b2c6

Please sign in to comment.