fix: to error message

This commit is contained in:
chenos 2025-03-31 15:18:09 +08:00
parent a7775c25db
commit c178c215a9

View File

@ -150,6 +150,9 @@ export class APIClient extends APIClientSDK {
}
return [{ message }];
}
if (error?.response?.data?.error) {
return [error?.response?.data?.error];
}
return (
error?.response?.data?.errors ||
error?.response?.data?.messages ||