Browse Source

fixed:0018540: 【健康一体机】【优化】 登录后:默认打开应该是居民列表菜单

loki.wu 11 months ago
parent
commit
af917e7211
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lib/pages/home/controller.dart

+ 4 - 1
lib/pages/home/controller.dart

@@ -291,7 +291,10 @@ class HomeController extends FControllerBase with HomeNavMixin {
           }
         }
       });
-      if (!menuItems.any((element) => element.key == "JKJC")) {
+      if (menuItems.any((element) => element.key == "JMLB")) {
+        state.currentSelectMenu =
+            menuItems.firstWhere((element) => element.key == "JMLB").routeName;
+      } else if (!menuItems.any((element) => element.key == "JKJC")) {
         state.currentSelectMenu = menuItems.first.routeName;
       }
       state.menuItems = menuItems;