raise-common-lib 0.0.40 → 0.0.42

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.
@@ -2117,14 +2117,17 @@
2117
2117
  // 获取是否跳过 location change
2118
2118
  /** @type {?} */
2119
2119
  var currentRoute = _this.router.routerState.root.firstChild;
2120
+ /** @type {?} */
2121
+ var title = state && state.title;
2120
2122
  if (currentRoute && !skipLocationChange) {
2121
- if (_this.tabList.length === 0 && !state) {
2122
- return; // 初始化第一个url不加入multi-tab
2123
- }
2124
2123
  if (_this.noGenerateTabUrls.includes(_this.router.url)) {
2125
2124
  return; // 排除不生成tab的url
2126
2125
  }
2127
- _this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, state && state.title);
2126
+ if (_this.tabList.length === 0 && !state) {
2127
+ title = sessionStorage.getItem("firstTabTitle");
2128
+ sessionStorage.removeItem("firstTabTitle");
2129
+ }
2130
+ _this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
2128
2131
  }
2129
2132
  }
2130
2133
  }));
@@ -20392,8 +20395,8 @@
20392
20395
  var newForm = __assign({}, this.form, (_a = {}, _a[field.formKey] = value, _a));
20393
20396
  // 修复错误提示显示 bug,不设置一下有概率拿不到最新的值
20394
20397
  this.form = newForm;
20395
- this.fieldChange.emit({ field: field, value: value });
20396
20398
  this.formChange.emit(newForm);
20399
+ this.fieldChange.emit({ field: field, value: value });
20397
20400
  };
20398
20401
  /**
20399
20402
  * @param {?} field