Skip to content

Commit

Permalink
fix: 更换判断条件
Browse files Browse the repository at this point in the history
  • Loading branch information
huishanyi committed Feb 1, 2024
1 parent d6d70a4 commit b5cb626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axios/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ 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 ? 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 b5cb626

Please sign in to comment.