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