@zyzgroup/core-web 0.1.62 → 0.1.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3195,6 +3195,10 @@ class hc {
3195
3195
  request(t) {
3196
3196
  return this.instance.request(t);
3197
3197
  }
3198
+ // this.request() 请求后未返回前,可取消请求
3199
+ cancel(t) {
3200
+ this.canceler.cancelRequest(t);
3201
+ }
3198
3202
  get(t, e) {
3199
3203
  return this.request({ ...e, method: "get", url: t });
3200
3204
  }
@@ -3239,8 +3243,8 @@ class gd {
3239
3243
  this.pendingRequestMap = /* @__PURE__ */ new Map();
3240
3244
  }
3241
3245
  getRequestId(t) {
3242
- const { url: e, method: s, params: r } = t;
3243
- return va({ url: e, method: s, params: r });
3246
+ const { method: e, url: s, params: r, data: i } = t;
3247
+ return va({ method: e, url: s, params: r, data: i });
3244
3248
  }
3245
3249
  pendingRequest(t) {
3246
3250
  const e = this.getRequestId(t);