|  | @@ -49,7 +49,7 @@
 | 
	
		
			
				|  |  |        </template>
 | 
	
		
			
				|  |  |        <template v-else-if="category === 'NPC'">
 | 
	
		
			
				|  |  |          <booknpc
 | 
	
		
			
				|  |  | -          v-if="context"
 | 
	
		
			
				|  |  | +          v-if="context && refresh"
 | 
	
		
			
				|  |  |            :task-model="isFinished ? 'ANSWER' : ''"
 | 
	
		
			
				|  |  |            :is-show-save="!isFinished"
 | 
	
		
			
				|  |  |            :book-answer-content="bookAnswerContent"
 | 
	
	
		
			
				|  | @@ -163,7 +163,8 @@ export default {
 | 
	
		
			
				|  |  |          count_error: 0
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        text: '',
 | 
	
		
			
				|  |  | -      themeColor: ''
 | 
	
		
			
				|  |  | +      themeColor: '',
 | 
	
		
			
				|  |  | +      refresh: true
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    computed: {
 | 
	
	
		
			
				|  | @@ -336,7 +337,9 @@ export default {
 | 
	
		
			
				|  |  |          this.answerData = { duration, count_not_done, count_right, count_error };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          this.curStudentID = '';
 | 
	
		
			
				|  |  | +        this.refresh = false;
 | 
	
		
			
				|  |  |          this.$nextTick(() => {
 | 
	
		
			
				|  |  | +          this.refresh = true;
 | 
	
		
			
				|  |  |            this.curStudentID = student_id;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |        });
 | 
	
	
		
			
				|  | @@ -362,17 +365,16 @@ export default {
 | 
	
		
			
				|  |  |      saveNPCAnswer(content) {
 | 
	
		
			
				|  |  |        const loading = this.$loading();
 | 
	
		
			
				|  |  |        FinishMyMaterial({
 | 
	
		
			
				|  |  | -        task_id: this.id,
 | 
	
		
			
				|  |  | -        material_type: 'COURSEWARE',
 | 
	
		
			
				|  |  | -        material_id: this.coursewareId,
 | 
	
		
			
				|  |  | +        task_id: this.taskId,
 | 
	
		
			
				|  |  | +        material_id: this.material_id,
 | 
	
		
			
				|  |  | +        material_type: this.material_type,
 | 
	
		
			
				|  |  |          exam_answer: {
 | 
	
		
			
				|  |  |            content
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |          .then(() => {
 | 
	
		
			
				|  |  | -          this.$message.success(this.$i18n.t('Key334'));
 | 
	
		
			
				|  |  | -          this.dialogClose();
 | 
	
		
			
				|  |  | -          this.$router.go(0);
 | 
	
		
			
				|  |  | +          this.$message.success('已完成');
 | 
	
		
			
				|  |  | +          this.dialogMaterialClose();
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          .finally(() => {
 | 
	
		
			
				|  |  |            loading.close();
 |