pull/243/head
xiaojunnuo 2024-11-11 13:43:25 +08:00
parent 89686399f9
commit ee731e4759
1 changed files with 2 additions and 2 deletions

View File

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