atr-components 3.0.7 → 3.0.9

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.
@@ -1588,6 +1588,9 @@ class BaseInterceptor {
1588
1588
  this.notification.error(`未登录或登录已过期,请重新登录。`, ``, {
1589
1589
  nzKey: 'outTime'
1590
1590
  });
1591
+ LocalStorageUtil.clearUs();
1592
+ this.menuService.clear();
1593
+ this.goTo('/p/login', true);
1591
1594
  // TODO 清空 token 信息
1592
1595
  // this.goTo('/p/login',false);
1593
1596
  break;
@@ -3315,8 +3318,10 @@ class AtrTableComponent {
3315
3318
  this.refreshStatus();
3316
3319
  }
3317
3320
  refreshStatus() {
3318
- this.isAllDisplayDataChecked = this.tableDatas
3319
- .every((item) => this.mapOfCheckedId[item.id]);
3321
+ if (!this.tableDatas || this.tableDatas.length <= 0) {
3322
+ return;
3323
+ }
3324
+ this.isAllDisplayDataChecked = this.tableDatas.every((item) => this.mapOfCheckedId[item.id]);
3320
3325
  this.isIndeterminate =
3321
3326
  this.tableDatas.some((item) => this.mapOfCheckedId[item.id]) &&
3322
3327
  !this.isAllDisplayDataChecked;