pb-sxp-ui 1.15.11 → 1.15.12-alpha.1
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/pb-ui.js
CHANGED
@@ -740,7 +740,9 @@
|
|
740
740
|
// Beacon API 用于发送异步和非阻塞请求到服务器。这类请求不需要响应。
|
741
741
|
if (options.type === 'beacon' && navigator.sendBeacon) {
|
742
742
|
return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
|
743
|
-
JSON.stringify(
|
743
|
+
JSON.stringify({
|
744
|
+
body: btoa(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId })))
|
745
|
+
})
|
744
746
|
], { type: 'application/json;charset=UTF-8' }));
|
745
747
|
}
|
746
748
|
return window
|
@@ -902,7 +904,7 @@
|
|
902
904
|
console.log('userInfo:', userInfo);
|
903
905
|
console.log('eventInfo:', ef);
|
904
906
|
console.log('========= 结束 =========');
|
905
|
-
return bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch(`v2/
|
907
|
+
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)}` : ''}`, {
|
906
908
|
method: 'POST',
|
907
909
|
body: { userInfo: realUserInfo, eventInfo: realEventInfo },
|
908
910
|
type: 'beacon'
|