byt-ui 0.1.7 → 0.1.8
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/lib/byt-ui.common.js +15 -13
- package/lib/byt-ui.umd.js +15 -13
- package/lib/byt-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/common/modules/sentry.js +15 -13
package/lib/byt-ui.common.js
CHANGED
|
@@ -125499,7 +125499,7 @@ var store = __webpack_require__(67745);
|
|
|
125499
125499
|
* @Description:
|
|
125500
125500
|
* @Author: 王国火
|
|
125501
125501
|
* @Date: 2024-04-18 15:37:44
|
|
125502
|
-
* @LastEditTime: 2024-04-
|
|
125502
|
+
* @LastEditTime: 2024-04-23 09:30:29
|
|
125503
125503
|
* @LastEditors: 王国火
|
|
125504
125504
|
*/
|
|
125505
125505
|
|
|
@@ -125655,20 +125655,22 @@ class Sentry {
|
|
|
125655
125655
|
// 允许自定义配置覆盖、合并默认配置
|
|
125656
125656
|
sdk_init(Object.assign({}, params, this.options));
|
|
125657
125657
|
}
|
|
125658
|
-
|
|
125659
|
-
|
|
125658
|
+
register() {
|
|
125659
|
+
this.axios({
|
|
125660
125660
|
url: '/leo-tech-bridge/sysParam/getSentryDsn',
|
|
125661
|
-
method: 'GET'
|
|
125661
|
+
method: 'GET',
|
|
125662
|
+
showError: false
|
|
125663
|
+
}).then(res => {
|
|
125664
|
+
// 需要兼容商城和业务中台
|
|
125665
|
+
const val = res instanceof Object ? res.data : res;
|
|
125666
|
+
if (val) {
|
|
125667
|
+
// 重新处理拼接dsn地址
|
|
125668
|
+
const localhost = window.location;
|
|
125669
|
+
const result = val.split('@');
|
|
125670
|
+
const dsn = `${localhost.protocol}//${result[0]}@${localhost.host}${result[1]}`;
|
|
125671
|
+
this.init(dsn);
|
|
125672
|
+
}
|
|
125662
125673
|
});
|
|
125663
|
-
// 需要兼容商城和业务中台
|
|
125664
|
-
const val = res instanceof Object ? res.data : res;
|
|
125665
|
-
if (val) {
|
|
125666
|
-
// 重新处理拼接dsn地址
|
|
125667
|
-
const localhost = window.location;
|
|
125668
|
-
const result = val.split('@');
|
|
125669
|
-
const dsn = `${localhost.protocol}//${result[0]}@${localhost.host}${result[1]}`;
|
|
125670
|
-
this.init(dsn);
|
|
125671
|
-
}
|
|
125672
125674
|
}
|
|
125673
125675
|
}
|
|
125674
125676
|
/* harmony default export */ var sentry = ({
|
package/lib/byt-ui.umd.js
CHANGED
|
@@ -125509,7 +125509,7 @@ var store = __webpack_require__(5438);
|
|
|
125509
125509
|
* @Description:
|
|
125510
125510
|
* @Author: 王国火
|
|
125511
125511
|
* @Date: 2024-04-18 15:37:44
|
|
125512
|
-
* @LastEditTime: 2024-04-
|
|
125512
|
+
* @LastEditTime: 2024-04-23 09:30:29
|
|
125513
125513
|
* @LastEditors: 王国火
|
|
125514
125514
|
*/
|
|
125515
125515
|
|
|
@@ -125665,20 +125665,22 @@ class Sentry {
|
|
|
125665
125665
|
// 允许自定义配置覆盖、合并默认配置
|
|
125666
125666
|
sdk_init(Object.assign({}, params, this.options));
|
|
125667
125667
|
}
|
|
125668
|
-
|
|
125669
|
-
|
|
125668
|
+
register() {
|
|
125669
|
+
this.axios({
|
|
125670
125670
|
url: '/leo-tech-bridge/sysParam/getSentryDsn',
|
|
125671
|
-
method: 'GET'
|
|
125671
|
+
method: 'GET',
|
|
125672
|
+
showError: false
|
|
125673
|
+
}).then(res => {
|
|
125674
|
+
// 需要兼容商城和业务中台
|
|
125675
|
+
const val = res instanceof Object ? res.data : res;
|
|
125676
|
+
if (val) {
|
|
125677
|
+
// 重新处理拼接dsn地址
|
|
125678
|
+
const localhost = window.location;
|
|
125679
|
+
const result = val.split('@');
|
|
125680
|
+
const dsn = `${localhost.protocol}//${result[0]}@${localhost.host}${result[1]}`;
|
|
125681
|
+
this.init(dsn);
|
|
125682
|
+
}
|
|
125672
125683
|
});
|
|
125673
|
-
// 需要兼容商城和业务中台
|
|
125674
|
-
const val = res instanceof Object ? res.data : res;
|
|
125675
|
-
if (val) {
|
|
125676
|
-
// 重新处理拼接dsn地址
|
|
125677
|
-
const localhost = window.location;
|
|
125678
|
-
const result = val.split('@');
|
|
125679
|
-
const dsn = `${localhost.protocol}//${result[0]}@${localhost.host}${result[1]}`;
|
|
125680
|
-
this.init(dsn);
|
|
125681
|
-
}
|
|
125682
125684
|
}
|
|
125683
125685
|
}
|
|
125684
125686
|
/* harmony default export */ var sentry = ({
|