atr-components 3.0.8 → 3.0.10

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.
@@ -1356,6 +1356,9 @@ class MenuService {
1356
1356
  MenuService.urlChange = new EventEmitter();
1357
1357
  }
1358
1358
  }
1359
+ getAllMenus() {
1360
+ return this.data;
1361
+ }
1359
1362
  delLastUrlParams(url) {
1360
1363
  if (MenuService.urlLastParams.url == url) {
1361
1364
  MenuService.urlLastParams = {};
@@ -1411,6 +1414,7 @@ class MenuService {
1411
1414
  // alert('请配置 获取菜单详情接口 atr_static_datas.menu_url')
1412
1415
  return;
1413
1416
  }
1417
+ debugger;
1414
1418
  if (this.isLoadMenu == 'unload') {
1415
1419
  this.isLoadMenu = 'loading';
1416
1420
  let options = {
@@ -1422,6 +1426,7 @@ class MenuService {
1422
1426
  if (result.status == 200) {
1423
1427
  this.isLoadMenu = 'loaded';
1424
1428
  this.data = result.data;
1429
+ console.log("菜单", this.data);
1425
1430
  }
1426
1431
  else {
1427
1432
  this.isLoadMenu = 'unload';
@@ -1588,6 +1593,9 @@ class BaseInterceptor {
1588
1593
  this.notification.error(`未登录或登录已过期,请重新登录。`, ``, {
1589
1594
  nzKey: 'outTime'
1590
1595
  });
1596
+ LocalStorageUtil.clearUs();
1597
+ this.menuService.clear();
1598
+ this.goTo('/p/login', true);
1591
1599
  // TODO 清空 token 信息
1592
1600
  // this.goTo('/p/login',false);
1593
1601
  break;