pb-sxp-ui 1.7.7 → 1.7.9
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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +6 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +6 -2
- package/lib/core/context/SxpDataSourceProvider.js +6 -2
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -697,8 +697,12 @@
|
|
697
697
|
// 事件上报优化
|
698
698
|
// Beacon API 用于发送异步和非阻塞请求到服务器。这类请求不需要响应。
|
699
699
|
if (options.type === 'beacon' && navigator.sendBeacon) {
|
700
|
+
const query = qs.stringify(Object.assign(Object.assign({}, bffDataSource.headers), { 'x-user-id': fakeUserId }));
|
701
|
+
if (query) {
|
702
|
+
path = (options === null || options === void 0 ? void 0 : options.query) ? `${path}&${query}` : `${path}?${query}`;
|
703
|
+
}
|
700
704
|
return navigator.sendBeacon(`${url}/api/v1${path}`, new Blob([
|
701
|
-
JSON.stringify(Object.assign(
|
705
|
+
JSON.stringify(Object.assign({}, options.body))
|
702
706
|
], { type: 'application/json;charset=UTF-8' }));
|
703
707
|
}
|
704
708
|
return window
|
@@ -854,7 +858,7 @@
|
|
854
858
|
try {
|
855
859
|
let replaceValue = new Function('fix_par', 'product', `return ${prop}`)(fix_par, product);
|
856
860
|
if (replaceValue) {
|
857
|
-
if (prop.indexOf('currency') &&
|
861
|
+
if ((prop === null || prop === void 0 ? void 0 : prop.indexOf('currency')) !== -1 &&
|
858
862
|
(replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.indexOf('-')) !== -1 &&
|
859
863
|
typeof replaceValue === 'string') {
|
860
864
|
replaceValue = (_a = replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.split('-')) === null || _a === void 0 ? void 0 : _a[0];
|