Quellcode durchsuchen

言语康复训练 - 听 - 75%

JutarryWu vor 1 Woche
Ursprung
Commit
68331e69f7

+ 4 - 2
src/views/tester/components/RehabilitationEvaluation/CognitiveAbilityTask/CognitiveAbilityTaskAuditoryTraining/CATAuditoryTrainingRecognition/index.vue

@@ -99,7 +99,7 @@ const handleNext = () => {
   if (TopicsVal.value[currentIndex.value].userAnswer === '') {
     showTopics.value = true
     showNextBtn.value = false
-    localStorage.setItem('tow-win-auditory-recognition-show-topics', 'YES')
+    localStorage.setItem('tow-win-auditory-recognition-show-topics', currentIndex.value + '')
   } else {
     let tempCount = TopicsVal.value.filter((item) => item.userAnswer !== '').length
     if (tempCount === TopicsVal.value.length) {
@@ -181,8 +181,10 @@ onMounted(() => {
         localStorage.removeItem('two-win-auditory-recognition-init-data')
       }
 
-      if (val.key === 'tow-win-auditory-recognition-show-topics' && val.newValue === 'YES') {
+      if (val.key === 'tow-win-auditory-recognition-show-topics') {
         showTopics.value = true
+        currentIndex.value = Number(val.newValue!)
+        useClickIndex.value = -1
         localStorage.removeItem('tow-win-auditory-recognition-show-topics')
       }