|
@@ -529,6 +529,11 @@ export const useDriverExam = (requestFn: Promise<openApi.selectFreeQuestionInfoR
|
|
|
return listIndex.value + 1
|
|
|
})
|
|
|
const countDown = ref('00:45:00')
|
|
|
+ const setPageNumToListIndex = (page:string|number)=>{
|
|
|
+ page = Number(page)
|
|
|
+ listIndex.value = page-1
|
|
|
+
|
|
|
+ }
|
|
|
const playIssueAudio = ()=>{
|
|
|
audio.playAudio(list.value[listIndex.value].issuemp3)
|
|
|
}
|
|
@@ -793,6 +798,7 @@ export const useDriverExam = (requestFn: Promise<openApi.selectFreeQuestionInfoR
|
|
|
switchIndexByJudge,
|
|
|
switchAnswerBySelect,
|
|
|
switchIndexBySelect,
|
|
|
+ setPageNumToListIndex,
|
|
|
playIssueAudio
|
|
|
|
|
|
}
|