@extscreen/es-core 1.1.22 → 1.1.25
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
@@ -3178,19 +3178,34 @@ var ESApplication = {
|
|
3178
3178
|
_initESApp() {
|
3179
3179
|
if (this._isFunction(this.onESCreate)) {
|
3180
3180
|
let result = this.onESCreate();
|
3181
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
3182
|
+
ESLog.d('ESApplication', '---------onESCreate---------->>>>', result);
|
3183
|
+
}
|
3181
3184
|
if (result instanceof Promise) {
|
3182
3185
|
result.then(
|
3183
|
-
() => {
|
3186
|
+
(success) => {
|
3187
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
3188
|
+
ESLog.d('ESApplication', '---------onESCreate---Promise---success---->>>>');
|
3189
|
+
}
|
3184
3190
|
this._initPage();
|
3185
3191
|
},
|
3186
3192
|
error => {
|
3193
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
3194
|
+
console.log('ESApplication', '---------onESCreate---Promise---error---->>>>', error);
|
3195
|
+
}
|
3187
3196
|
this._initPage();
|
3188
3197
|
}
|
3189
3198
|
);
|
3190
3199
|
} else {
|
3200
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
3201
|
+
ESLog.d('ESApplication', '---------onESCreate--return-Not Promise----->>>>');
|
3202
|
+
}
|
3191
3203
|
this._initPage();
|
3192
3204
|
}
|
3193
3205
|
} else {
|
3206
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
3207
|
+
ESLog.d('ESApplication', '---------onESCreate---Not Function----->>>>');
|
3208
|
+
}
|
3194
3209
|
this._initPage();
|
3195
3210
|
}
|
3196
3211
|
},
|
@@ -3198,12 +3213,16 @@ var ESApplication = {
|
|
3198
3213
|
let initUrl = ESApp.$options.$superProps.url;
|
3199
3214
|
let initParams = ESApp.$options.$superProps.params;
|
3200
3215
|
if (!initUrl) {
|
3201
|
-
|
3216
|
+
initUrl = this.$router.options.main;
|
3202
3217
|
}
|
3203
|
-
|
3204
|
-
name:
|
3218
|
+
let route = {
|
3219
|
+
name: initUrl,
|
3205
3220
|
params: initParams,
|
3206
|
-
}
|
3221
|
+
};
|
3222
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
3223
|
+
console.log('ESApplication', '---------onESCreate---_initPage--push--->>>>', route);
|
3224
|
+
}
|
3225
|
+
this.$router.push(route);
|
3207
3226
|
},
|
3208
3227
|
_isFunction(func) {
|
3209
3228
|
return Object.prototype.toString.call(func) === '[object Function]';
|