mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 03:26:47 +08:00
fix: request error return
This commit is contained in:
@@ -17,7 +17,7 @@ export async function handleResponseError(error: AxiosError<any, any>) {
|
||||
await refreshToken();
|
||||
return request({ ...config, refreshTokenRequest: true });
|
||||
}
|
||||
return response;
|
||||
return error;
|
||||
}
|
||||
|
||||
export async function handleResponse(response: AxiosResponse<any, any>) {
|
||||
|
||||
Reference in New Issue
Block a user