|
@@ -235,13 +235,8 @@ const startTask = useThrottleFn(() => {
|
|
|
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
|
|
|
- })
|
|
|
+ checkItems.value[tempIndex].isTraining = true
|
|
|
}
|
|
|
taskBegin.value = true
|
|
|
if (!isMainWin.value) {
|
|
@@ -337,7 +332,8 @@ onMounted(() => {
|
|
|
|
|
|
if (val.key === 'tow-win-auditory-change-status') {
|
|
|
checkItems.value[modeCurrentIndex].isFinish = true
|
|
|
- childTaskOver(JSON.parse(val.newValue!))
|
|
|
+ modeCurrentIndex++
|
|
|
+ startTask()
|
|
|
localStorage.removeItem('tow-win-auditory-change-status')
|
|
|
}
|
|
|
} else {
|