mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 21:06:42 +08:00
考试接口添加参数
This commit is contained in:
@@ -152,6 +152,10 @@ export default {
|
||||
showTest:{
|
||||
type:Boolean,
|
||||
default:false
|
||||
},
|
||||
contentTotal:{
|
||||
type:Number,
|
||||
default:0
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -249,7 +253,7 @@ export default {
|
||||
},
|
||||
loadStudyItemId(){
|
||||
//获取studyItemId;
|
||||
apiStudy.getStudyContentItem(this.studyId,this.info.contentId).then(rs=>{
|
||||
apiStudy.getStudyContentItem(this.studyId,this.info.contentId,this.contentTotal).then(rs=>{
|
||||
if(rs.status==200){
|
||||
this.examScore=rs.result.score;
|
||||
this.studyItemId=rs.result.id;
|
||||
|
||||
Reference in New Issue
Block a user