Browse Source

Merge branch 'master' of http://git.ius.plus/Project-Vital/VitalApp

loki.wu 10 months ago
parent
commit
bbb7a87379
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lib/pages/patient/list/controller.dart

+ 4 - 1
lib/pages/patient/list/controller.dart

@@ -291,7 +291,10 @@ class PatientListController extends FControllerBase
   /// 加载下一页列表
   Future<void> loadNextPageList({bool isFilter = false}) async {
     busy = true;
-    var allLabels = await Get.find<ILabelManager>().getAllLabels();
+    List<LabelDTO> allLabels = [];
+    if (kIsOnline) {
+      allLabels = await Get.find<ILabelManager>().getAllLabels();
+    }
     var labelKeys = allLabels.map((e) => e.code ?? '').toList();
     final request = PatientPageRequest(
       pageIndex: state.pageIndex + 1,