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