@extscreen/es-core 2.2.59 → 2.2.61
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.js +24 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -4602,6 +4602,7 @@ var ESApplication = {
|
|
4602
4602
|
appInitProps: {},
|
4603
4603
|
appInitUrl: '',
|
4604
4604
|
appInitParams: {},
|
4605
|
+
autoLaunchMainESPage: true,
|
4605
4606
|
};
|
4606
4607
|
},
|
4607
4608
|
mounted() {
|
@@ -4667,13 +4668,13 @@ var ESApplication = {
|
|
4667
4668
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4668
4669
|
ESLog.d(TAG, '---------onESCreate---Promise---success---->>>>');
|
4669
4670
|
}
|
4670
|
-
this.
|
4671
|
+
this._onESCreated(true);
|
4671
4672
|
},
|
4672
4673
|
error => {
|
4673
4674
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4674
4675
|
console.log(TAG, '---------onESCreate---Promise---error---->>>>', error);
|
4675
4676
|
}
|
4676
|
-
this.
|
4677
|
+
this._onESCreated(false);
|
4677
4678
|
}
|
4678
4679
|
);
|
4679
4680
|
}
|
@@ -4682,7 +4683,7 @@ var ESApplication = {
|
|
4682
4683
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4683
4684
|
ESLog.d(TAG, '---------onESCreate--return-Not Promise----->>>>');
|
4684
4685
|
}
|
4685
|
-
this.
|
4686
|
+
this._onESCreated(true);
|
4686
4687
|
}
|
4687
4688
|
}
|
4688
4689
|
//
|
@@ -4690,10 +4691,22 @@ var ESApplication = {
|
|
4690
4691
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4691
4692
|
ESLog.d(TAG, '---------onESCreate---Not Function----->>>>');
|
4692
4693
|
}
|
4693
|
-
this.
|
4694
|
+
this._onESCreated(true);
|
4694
4695
|
}
|
4695
4696
|
},
|
4696
|
-
|
4697
|
+
_onESCreated(success) {
|
4698
|
+
try {
|
4699
|
+
this.onESCreated(success);
|
4700
|
+
} catch (e) {
|
4701
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
4702
|
+
ESLog.d(TAG, '---------onESCreated---error---->>>>');
|
4703
|
+
}
|
4704
|
+
}
|
4705
|
+
if (this.autoLaunchMainESPage) {
|
4706
|
+
this.launchMainESPage();
|
4707
|
+
}
|
4708
|
+
},
|
4709
|
+
launchMainESPage() {//launchESPage
|
4697
4710
|
let route = {
|
4698
4711
|
name: this.appInitUrl,
|
4699
4712
|
params: this.appInitParams,
|
@@ -4725,8 +4738,14 @@ var ESApplication = {
|
|
4725
4738
|
return false;
|
4726
4739
|
},
|
4727
4740
|
//---------------------------下面的方法给使用者覆写-----------------------------
|
4741
|
+
onESCreated(success) {
|
4742
|
+
|
4743
|
+
},
|
4728
4744
|
onLaunchESPage(url, params) {
|
4729
4745
|
|
4746
|
+
},
|
4747
|
+
setAutoLaunchMainESPage(auto) {
|
4748
|
+
this.autoLaunchMainESPage = auto;
|
4730
4749
|
}
|
4731
4750
|
},
|
4732
4751
|
};
|