feat:y优化

This commit is contained in:
surenjun 2025-01-13 15:05:03 +08:00
parent 3714ed2478
commit 1c1eccb250
2 changed files with 14 additions and 6 deletions

View File

@ -1025,6 +1025,7 @@ struct Index {
confirmFn:()=>{
this.errorMsg = ''
this.isErrorMsgEnd = true;
router.back()
},
})
}

View File

@ -1002,7 +1002,7 @@ export default class Judge {
if (!singlePlay && isManual && !isAllProjectsEnd) {
avPlayer.playAudio(['voice/empty.mp3'], true, () => {
this.isUdpEnd = true;
setTimeout(()=>{ closeAllFiles();},1000)
closeAllFiles()
router.back();
})
return
@ -1071,8 +1071,13 @@ export default class Judge {
if(code != 1){
avPlayer.playAudio(['voice/监管失败.mp3'])
this.judgeUI.errorMsg = decodeURIComponent(message)
if(code == 2300028 || code == 2300027){
this.judgeUI.errorMsg = '当前的考试过程信息监管审核未通过,程序将退出!'
}
this.isUdpEnd = true;
setTimeout(()=>{ closeAllFiles();},1000)
closeAllFiles()
this.judgeUI.loadingPopupVisible = false;
return
}
@ -1156,7 +1161,7 @@ export default class Judge {
if (kfArr.length - 1 === index) {
avPlayer.playAudio([`voice/${kf.markcatalog}.mp3`, voiceURL], false, () => {
this.isUdpEnd = true;
setTimeout(()=>{ closeAllFiles();},1000)
closeAllFiles()
router.back();
})
throw new Error('End Loop')
@ -1165,7 +1170,7 @@ export default class Judge {
} else {
avPlayer.playAudio([`voice/${kf.markcatalog}.mp3`, voiceURL], false, () => {
this.isUdpEnd = true;
setTimeout(()=>{ closeAllFiles();},1000)
closeAllFiles()
router.back();
})
throw new Error('End Loop')
@ -1179,7 +1184,7 @@ export default class Judge {
avPlayer.playAudio([voiceURL], true, () => {
setTimeout(() => {
this.isUdpEnd = true
setTimeout(()=>{ closeAllFiles();},1000)
closeAllFiles()
router.back();
}, param302 == 8 ? 3000 : 0)
})
@ -1679,7 +1684,9 @@ export default class Judge {
closeAllFiles = ()=>{
this.fileLog.closeAllFiles()
setTimeout(()=>{
this.fileLog.closeAllFiles()
},1000)
}
public plcStr: string