fantasy-ngzorro 1.1.7 → 1.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.
@@ -3520,6 +3520,7 @@
3520
3520
  * @return {?}
3521
3521
  */
3522
3522
  function () {
3523
+ var _this = this;
3523
3524
  this.userSession = this.commonSessionService.getSession('__jy_authorization_session__');
3524
3525
  // 用于开发环境调试
3525
3526
  if (!this.userSession) {
@@ -3527,7 +3528,18 @@
3527
3528
  userCode: 'dev'
3528
3529
  };
3529
3530
  }
3530
- this.getInitLocalforage();
3531
+ localforage.ready().then((/**
3532
+ * @return {?}
3533
+ */
3534
+ function () {
3535
+ _this.getInitLocalforage();
3536
+ })).catch((/**
3537
+ * @param {?} e
3538
+ * @return {?}
3539
+ */
3540
+ function (e) {
3541
+ throw 'localforage加载异常';
3542
+ }));
3531
3543
  };
3532
3544
  /**
3533
3545
  * @return {?}