We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d70a4 commit b5cb626Copy full SHA for b5cb626
src/axios/service.ts
@@ -18,7 +18,7 @@ axiosInstance.interceptors.request.use((res: InternalAxiosRequestConfig) => {
18
const controller = new AbortController()
19
const url = res.url || ''
20
res.signal = controller.signal
21
- 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)
22
return res
23
})
24
0 commit comments