fix: Routing after finishing a course topic

This commit is contained in:
scmmishra 2019-02-28 15:43:33 +05:30
parent de5f71ae9e
commit 5e61b17cf8

View File

@ -16,7 +16,7 @@ export default {
console.log("Adding Activity") console.log("Adding Activity")
lms.call("add_activity", lms.call("add_activity",
{ {
course: this.$route.params.course, course: this.$route.params.course_name,
content_type: this.$route.params.type, content_type: this.$route.params.type,
content: this.$route.params.content content: this.$route.params.content
} }
@ -25,7 +25,7 @@ export default {
}, },
goNext() { goNext() {
this.addActivity() this.addActivity()
this.$router.push({ name: 'content', params: { course: this.$route.params.course, type:this.nextContentType, content:this.nextContent }}) this.$router.push({ name: 'content', params: { course: this.$route.params.course_name, type:this.nextContentType, content:this.nextContent }})
}, },
finish() { finish() {
this.addActivity() this.addActivity()