seimin 1 月之前
父节点
当前提交
e655193e90
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/app/views/main/main.component.ts

+ 3 - 1
src/app/views/main/main.component.ts

@@ -484,7 +484,9 @@ export class MainComponent implements OnInit {
484
   }
484
   }
485
   // 统计
485
   // 统计
486
   toNewStatistics(): void {
486
   toNewStatistics(): void {
487
-    this.router.navigateByUrl("newStatistics/maintenanceStatistics/incidentStatistics");
487
+    let menus = JSON.parse(localStorage.getItem("menu"));
488
+    let firstMenu = menus.find((item) => item.type == "newStatistics");
489
+    this.router.navigateByUrl(`newStatistics/${firstMenu.link}/${firstMenu.childrens[0].link}`);
488
   }
490
   }
489
   // 大屏端或视图端
491
   // 大屏端或视图端
490
   screenType;
492
   screenType;