diff --git a/making_school_asignment_app/lib/page/home_page/children/homework_review/components/question_paper_view.dart b/making_school_asignment_app/lib/page/home_page/children/homework_review/components/question_paper_view.dart index 8be037b..8314be7 100644 --- a/making_school_asignment_app/lib/page/home_page/children/homework_review/components/question_paper_view.dart +++ b/making_school_asignment_app/lib/page/home_page/children/homework_review/components/question_paper_view.dart @@ -334,12 +334,12 @@ class QuestionImageView extends HookWidget with EventBusMixin( - context: context, + context: Get.context ?? context, builder: (context1) { return AlertDialog(content: quickText("是否撤销上次批阅批注痕迹?"), actions: [ TextButton(child: quickText("取消"), onPressed: () => Navigator.pop(context1, false)), TextButton( - child: quickText("确定", color: Theme.of(context).primaryColor), + child: quickText("确定", color: Theme.of(context1).primaryColor), onPressed: () => easyThrottle( 'REVOKE_THE_LAST_ANNOTATION_AND_SUBMIT', () { @@ -371,11 +371,17 @@ class QuestionImageView extends HookWidget with EventBusMixin Navigator.pop(context1, false)), TextButton( child: quickText("确定", color: Theme.of(context).primaryColor), - onPressed: () { - Navigator.pop(context1, true); - sateData.data.value?.zgtAnnotate = null; - sateData.data.value?.showZgtAnnotate = null; - }, + onPressed: () => easyThrottle( + 'REVOKE_THE_LAST_ANNOTATION_AND_SUBMIT', + () { + Navigator.pop(context1, true); + sateData.data.value?.zgtAnnotate = null; + sateData.data.value?.showZgtAnnotate = null; + if (sateData.data.value != null) { + sateData.data.update((_) => logic.submit(Get.context ?? context)); + } + }, + ), ) ]); }, @@ -395,6 +401,7 @@ class QuestionImageView extends HookWidget with EventBusMixin