alova updates #4

This commit is contained in:
proddy
2023-06-08 16:50:40 +02:00
parent e11d5bed9d
commit 5c6d704a48
8 changed files with 112 additions and 44 deletions

View File

@@ -33,7 +33,7 @@ export const alovaInstance = createAlova({
},
responded: {
onSuccess: async (response, method) => {
onSuccess: async (response) => {
if (response.status === 400) {
throw new Error('Invalid command');
}