@alipay/ams-checkout 0.0.1726734012-dev.2 → 0.0.1726734012-dev.4
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.
@@ -557,13 +557,18 @@ export var AMSComponent = /*#__PURE__*/function (_CoreInstance) {
|
|
557
557
|
}, {
|
558
558
|
key: "preload",
|
559
559
|
value: function preload(_options) {
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
560
|
+
try {
|
561
|
+
var _this$channelType;
|
562
|
+
this.preloadComponent();
|
563
|
+
if (this.channelType && (_this$channelType = this.channelType) !== null && _this$channelType !== void 0 && _this$channelType.some(function (val) {
|
564
|
+
return val === ComponentSignEnum.EASY_PAY_WALLET || val === ComponentSignEnum.EASY_PAY_APM;
|
565
|
+
})) return;
|
566
|
+
this._componentApp.AMSSDK.initSecurity({
|
567
|
+
product: this.options.product
|
568
|
+
});
|
569
|
+
} catch (err) {
|
570
|
+
console.log('web-sdk error', err);
|
571
|
+
}
|
567
572
|
}
|
568
573
|
}]);
|
569
574
|
return AMSComponent;
|