pb-sxp-ui 1.15.11 → 1.15.12-alpha.2
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +4 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +4 -2
- package/lib/core/context/SxpDataSourceProvider.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -725,7 +725,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
725
725
|
// Beacon API 用于发送异步和非阻塞请求到服务器。这类请求不需要响应。
|
726
726
|
if (options.type === 'beacon' && navigator.sendBeacon) {
|
727
727
|
return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
|
728
|
-
JSON.stringify(
|
728
|
+
JSON.stringify({
|
729
|
+
body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
|
730
|
+
})
|
729
731
|
], { type: 'application/json;charset=UTF-8' }));
|
730
732
|
}
|
731
733
|
return window
|
@@ -887,7 +889,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
887
889
|
console.log('userInfo:', userInfo);
|
888
890
|
console.log('eventInfo:', ef);
|
889
891
|
console.log('========= 结束 =========');
|
890
|
-
return bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/
|
892
|
+
return bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/cld/${(_b = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _b === void 0 ? void 0 : _b['x-app-id']}/${eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.eventSubject}${cl_source ? `/${decodeURIComponent(cl_source)}` : ''}`, {
|
891
893
|
method: 'POST',
|
892
894
|
body: { userInfo: realUserInfo, eventInfo: realEventInfo },
|
893
895
|
type: 'beacon'
|