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/index.js CHANGED
@@ -732,12 +732,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
732
732
  // 事件上报优化
733
733
  // Beacon API 用于发送异步和非阻塞请求到服务器。这类请求不需要响应。
734
734
  if (options.type === 'beacon' && navigator.sendBeacon) {
735
- const query = qs.stringify(Object.assign(Object.assign({}, bffDataSource.headers), { 'x-user-id': fakeUserId }));
736
- if (query) {
737
- path = (options === null || options === void 0 ? void 0 : options.query) ? `${path}&${query}` : `${path}?${query}`;
738
- }
739
735
  return navigator.sendBeacon(`${url}/api/v1${path}`, new Blob([
740
- JSON.stringify(Object.assign({}, options.body))
736
+ JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))
741
737
  ], { type: 'application/json;charset=UTF-8' }));
742
738
  }
743
739
  return window