This commit is contained in:
DESKTOP-I3JPKHK\wy 2025-04-21 17:13:55 +08:00
parent a1a2389411
commit dfcb9adcbc
1 changed files with 7 additions and 3 deletions

View File

@ -268,7 +268,10 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin {
/// allPairs
Future<void> 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,7 +344,8 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin {
}
state.param.value = newParams;
});
} catch (_) {}finally{
} catch (_) {
} finally {
state.submitLoading.value = false;
}
}