Преглед на файлове

fix: fresh questions in test participate page bug fix

ali преди 2 години
родител
ревизия
7dcddcabd9
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      src/components/Widgets/Test/TestConfirmation/TestConfirmation.vue
  2. 1 0
      src/pages/User/Profile/classroomInfo.vue

+ 1 - 0
src/components/Widgets/Test/TestConfirmation/TestConfirmation.vue

@@ -68,6 +68,7 @@ export default {
     }
   },
   mounted() {
+    this.$store.commit('Test/updateAnswerBook', null)
     this.getAnswerBook()
   },
   methods: {

+ 1 - 0
src/pages/User/Profile/classroomInfo.vue

@@ -707,6 +707,7 @@ export default {
     }
   },
   mounted () {
+    this.$store.commit('Test/updateAnswerBook', null)
     this.getRegistrationInfo()
     this.mounted = true
     FormBuilderAssist.setAttributeByName(this.testListInputs, 'owner', 'value', this.user.id)