BUG fix: login expired

This commit is contained in:
KUN1007 2023-11-30 20:58:32 +08:00
parent 17860040eb
commit 74c3bc7034

View file

@ -29,7 +29,7 @@ const kunFetchRequest = async <T>(
const newResponseData = await requestRefresh(fullUrl, options)
const data: T = await newResponseData.json()
return data
} else if (response.status === 233) {
} else if (!response.ok) {
// Handle some known backend error
await onRequestError(response)
return {} as T