seimin 1 mês atrás
pai
commit
e655193e90
1 arquivos alterados com 3 adições e 1 exclusões
  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 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 492
   screenType;