保存后返回列表
This commit is contained in:
parent
a7e8633c2e
commit
9085aa37af
|
@ -142,12 +142,14 @@ export default {
|
|||
},
|
||||
save() {
|
||||
console.log(this.form)
|
||||
courseAdd(this.form)
|
||||
.then(res => {
|
||||
courseAdd(this.form).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.$message.info("保存成功")
|
||||
this.$message.info('保存成功')
|
||||
//新增完成后直接返回课程列表
|
||||
this.$router.push({ path: '/course/CourseList', query: {} })
|
||||
}
|
||||
}) }
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue