taiji_caozhaorui il y a 2 semaines
Parent
commit
37847ceab5
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/views/study/subject/question/index.vue

+ 5 - 1
src/views/study/subject/question/index.vue

@@ -217,6 +217,7 @@ const initQuestion = () => {
   }
   state.question.loading = true
   state.question.data = []
+  state.question.total = 0
   const uuid = v4()
   state.question.uuid = uuid + ''
   trainingCampQuestionList({
@@ -225,7 +226,10 @@ const initQuestion = () => {
     category: AppStore.studentInfo?.grade,
     subject: route.meta.subjectId,
     correct: state.question.type !== '错题',
-    questionTypeCode: treeMapCpt.value.get(state.selected).questionTypeCode,
+    questionTypeCode:
+      treeMapCpt.value.get(state.selected).questionTypeCode +
+      '-' +
+      treeMapCpt.value.get(state.selected).value,
     studentId: AppStore.studentInfo?.studentId,
   })
     .then(({ rows, total }: any) => {