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