Преглед на файлове

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

guanxinyi преди 11 месеца
родител
ревизия
754a1d85fd
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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());
       }),
     ),