Skip to content

Commit

Permalink
fix: 修复 prettier 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
huishanyi committed Feb 2, 2024
1 parent 4bf5070 commit f5f08f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/axios/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ axiosInstance.interceptors.request.use((res: InternalAxiosRequestConfig) => {
const controller = new AbortController()
const url = res.url || ''
res.signal = controller.signal
abortControllerMap.set(import.meta.env.VITE_USE_MOCK === 'true' ? url.replace('/mock', '') : url, controller)
abortControllerMap.set(
import.meta.env.VITE_USE_MOCK === 'true' ? url.replace('/mock', '') : url,
controller
)
return res
})

Expand Down

0 comments on commit f5f08f8

Please sign in to comment.