|
@@ -232,12 +232,13 @@ const modeSelectFn = useThrottleFn((mode: number, flag: number = 0) => {
|
|
|
})
|
|
|
|
|
|
const startTask = useThrottleFn(() => {
|
|
|
+ let tempIndex = checkItems.value.findIndex((item: CheckItem) => item.active && !item.isTraining && !item.isFinish)
|
|
|
+
|
|
|
if (modeSelect.value === 0) {
|
|
|
checkItems.value[modeCurrentIndex].isTraining = true
|
|
|
} else {
|
|
|
// let tempIndex = checkItems.value.findIndex((item: CheckItem) => item.active && !item.isTraining && !item.isFinish)
|
|
|
// checkItems.value[tempIndex].isTraining = true
|
|
|
- let tempIndex = checkItems.value.findIndex((item: CheckItem) => item.active && !item.isTraining && !item.isFinish)
|
|
|
console.log(tempIndex, 'tempIndex241')
|
|
|
checkItems.value.forEach((item, index) => {
|
|
|
item.isTraining = tempIndex === index
|
|
@@ -245,6 +246,7 @@ const startTask = useThrottleFn(() => {
|
|
|
}
|
|
|
taskBegin.value = true
|
|
|
if (!isMainWin.value) {
|
|
|
+ console.log(tempIndex, 'tempIndex248')
|
|
|
localStorage.setItem('two-win-auditory-task-begin', 'YES')
|
|
|
}
|
|
|
})
|