소스 검색

fixed #307

ali 2 년 전
부모
커밋
820a6e2744
1개의 변경된 파일과 6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      src/components/Widgets/Test/ShowTestGradeForGrader/ShowTestGradeForGrader.vue

+ 6 - 4
src/components/Widgets/Test/ShowTestGradeForGrader/ShowTestGradeForGrader.vue

@@ -280,22 +280,24 @@ export default {
     confirmScores () {
       this.answerBook.loading = true
       APIGateway.answerBook.confirmScores(this.$route.params.answer_book_id)
-        .then((answerBook) => {
-          this.loadAnswerBook(answerBook)
+        .then(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
         .catch(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
     },
     confirmUngradable () {
       this.answerBook.loading = true
       APIGateway.answerBook.confirmUngradable(this.$route.params.answer_book_id)
-        .then((answerBook) => {
-          this.loadAnswerBook(answerBook)
+        .then(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
         .catch(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
     }