pb-sxp-ui 1.10.9 → 1.10.10

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.
package/dist/pb-ui.js CHANGED
@@ -747,12 +747,8 @@
747
747
  // 事件上报优化
748
748
  // Beacon API 用于发送异步和非阻塞请求到服务器。这类请求不需要响应。
749
749
  if (options.type === 'beacon' && navigator.sendBeacon) {
750
- const query = qs.stringify(Object.assign(Object.assign({}, bffDataSource.headers), { 'x-user-id': fakeUserId }));
751
- if (query) {
752
- path = (options === null || options === void 0 ? void 0 : options.query) ? `${path}&${query}` : `${path}?${query}`;
753
- }
754
750
  return navigator.sendBeacon(`${url}/api/v1${path}`, new Blob([
755
- JSON.stringify(Object.assign({}, options.body))
751
+ JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))
756
752
  ], { type: 'application/json;charset=UTF-8' }));
757
753
  }
758
754
  return window