This commit is contained in:
xiaojunnuo
2024-11-11 13:44:49 +08:00
parent 37b5b22713
commit 9fe5d6655c

View File

@@ -33,7 +33,7 @@ export class HttpError extends Error {
this.name = error.name;
this.code = error.code;
this.status = error.response?.status || error.code;
this.status = error.response?.status;
this.statusText = error.response?.statusText || error.code;
this.request = {
baseURL: error.config?.baseURL,