pb-sxp-ui 1.15.12-alpha.1 → 1.15.12-alpha.3
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 +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +3 -5
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +3 -5
- package/lib/core/context/SxpDataSourceProvider.js +3 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -746,11 +746,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
746
746
|
// 事件上报优化
|
747
747
|
// Beacon API 用于发送异步和非阻塞请求到服务器。这类请求不需要响应。
|
748
748
|
if (options.type === 'beacon' && navigator.sendBeacon) {
|
749
|
-
return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
|
750
|
-
|
751
|
-
|
752
|
-
})
|
753
|
-
], { type: 'application/json;charset=UTF-8' }));
|
749
|
+
return navigator.sendBeacon(`${url}/api/${path}`, new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))], {
|
750
|
+
type: 'application/json;charset=UTF-8'
|
751
|
+
}));
|
754
752
|
}
|
755
753
|
return window
|
756
754
|
.fetch(`${url}/api/${path}`, {
|