停止学习课程

This commit is contained in:
shijingjing
2023-02-14 18:01:00 +08:00
parent 9a8227e43c
commit 875c056075
2 changed files with 33 additions and 10 deletions

View File

@@ -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>