修改
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user