From dfcb9adcbc281ddc82c8096c9ddf62d249e421de Mon Sep 17 00:00:00 2001 From: "DESKTOP-I3JPKHK\\wy" <1111> Date: Mon, 21 Apr 2025 17:13:55 +0800 Subject: [PATCH] 111 --- .../homework_review/configuration_files/index.dart | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/index.dart b/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/index.dart index 08735b2..43774d7 100644 --- a/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/index.dart +++ b/making_school_asignment_app/lib/page/home_page/children/homework_review/configuration_files/index.dart @@ -268,7 +268,10 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin { /// allPairs Future submit(BuildContext context) async { try { - if(state.submitLoading.value) return; + if (state.submitLoading.value) { + ToastUtils.showInfo("正在提交批阅数据,请勿重复操作"); + return; + } state.submitLoading.value = true; var data = state.data.value; if (data == null) return; @@ -341,8 +344,9 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin { } state.param.value = newParams; }); - } catch (_) {}finally{ - state.submitLoading.value= false; + } catch (_) { + } finally { + state.submitLoading.value = false; } }