fix: 修复某些地区被屏蔽无法激活专业版的bug

This commit is contained in:
xiaojunnuo
2024-09-30 00:22:50 +08:00
parent 8e32156aa0
commit 7532a96085
5 changed files with 9 additions and 8 deletions
@@ -8,7 +8,7 @@ export class HttpError extends Error {
status?: number;
statusText?: string;
code?: string;
request?: { url: string; method: string; params?: any; data?: any };
request?: { baseURL: string; url: string; method: string; params?: any; data?: any };
response?: { data: any };
cause?: any;
constructor(error: any) {
@@ -23,6 +23,7 @@ export class HttpError extends Error {
this.status = error.response?.status;
this.statusText = error.response?.statusText;
this.request = {
baseURL: error.config?.baseURL,
url: error.config?.url,
method: error.config?.method,
params: error.config?.params,