This commit is contained in:
2025-11-08 14:36:04 +08:00
parent 3d02a0d015
commit 3e27ad7683

View File

@@ -273,6 +273,9 @@ function submit(){
}else if(resData.msg=='错误'){
errorsIndex.value++
}
if(questionIndex.value==problemData.value.length){
$api.msg('已经是最后一题了,请点击 “完成练习” 按钮保存记录')
}
accuracyRates()
}
});
@@ -343,7 +346,21 @@ function switchs(i){
dialogVisible.value=false
};
function exit(){
navBack()
let header={
'Authorization':Authorization.value,
'Content-Type':"application/x-www-form-urlencoded"
}
$api.myRequest('/train/public/trainPractice/getCount', {
userId: userInfo.value.userId,
title:"专项练习",
type:"practice",
hour:elapsedTime.value,
truePresent:accuracyRate.value
},'post',9100,header).then((resData) => {
if(resData&&resData.code==200){
navBack()
}
});
}
</script>