Ver Fonte

1、严重精神障碍信息补充表修改路由

guanxinyi há 11 meses atrás
pai
commit
754a1d85fd
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      lib/routes/routes.dart

+ 4 - 0
lib/routes/routes.dart

@@ -605,6 +605,10 @@ class Routes {
       '/patient/mental_disorder_info',
       () => const MentalDisorderInfoView(),
       binding: BindingsBuilder(() {
+        /// TODO 需要优化
+        if (!Get.isRegistered<MedicalController>()) {
+          Get.lazyPut(() => MedicalController());
+        }
         Get.put(MentalDisorderInfoController());
       }),
     ),