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