mcy_new #1

Merged
wangyang merged 179 commits from mcy_new into master 2025-08-28 10:10:45 +08:00
1 changed files with 7 additions and 3 deletions
Showing only changes of commit dfcb9adcbc - Show all commits

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,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;
}
}