停止学习课程
This commit is contained in:
@@ -123,9 +123,24 @@ export default {
|
||||
this.$u.toast(err.msg)
|
||||
})
|
||||
},
|
||||
stop() {
|
||||
this.$instance.post(`/app/appcourseinfo/stopLearnById`,null,{
|
||||
params: {
|
||||
id: this.data.id,
|
||||
recordId: this.data.recordId
|
||||
}
|
||||
}).then(res=> {
|
||||
if(res.code==0) {
|
||||
console.log(res.msg);
|
||||
}
|
||||
}).catch(err=> this.$u.toast(err.msg))
|
||||
},
|
||||
keyboard(e) {
|
||||
console.log(e.detail.height);
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
this.stop()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user