This commit is contained in:
DESKTOP-I3JPKHK\wy 2025-04-21 17:43:33 +08:00
parent 344fe4757d
commit 094f0385dc
2 changed files with 8 additions and 3 deletions

View File

@ -405,8 +405,8 @@ class QuestionImageView extends HookWidget with EventBusMixin<BottomOperationBar
}; };
}, []); }, []);
print("++++++++++++++++++++++ ${theMaxHeight.value}"); // print("++++++++++++++++++++++ ${theMaxHeight.value}");
print("+++++ 位置:${initPosition.value}"); // print("+++++ 位置:${initPosition.value}");
return Listener( return Listener(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,

View File

@ -159,7 +159,8 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin {
void getData() async { void getData() async {
var timerControl = Timer(const Duration(milliseconds: 300), () => ToastUtils.showLoading()); var timerControl = Timer(const Duration(milliseconds: 300), () => ToastUtils.showLoading());
try { try {
DoPaperDetailsResult? data = await getClient().getDoPaperDetails(state.param.value); DoPaperDetailsResult data = await getClient().getDoPaperDetails(state.param.value);
// var studentQuestions = data.studentQuestions; // var studentQuestions = data.studentQuestions;
// // 0 // // 0
// for (var i = 0; i < studentQuestions.length; i++) { // for (var i = 0; i < studentQuestions.length; i++) {
@ -169,6 +170,10 @@ class HomeworkReviewLogic extends GetxController with RequestToolMixin {
// } // }
state.getDataError.value = false; state.getDataError.value = false;
state.handwritings = []; state.handwritings = [];
state.param.value.templateId ??= data.templateId;
state.param.value.studentId ??= data.studentId;
state.data.value = data; state.data.value = data;
} catch (e) { } catch (e) {
print('获取数据报错了:$e'); print('获取数据报错了:$e');