保存后返回列表

This commit is contained in:
18571350067 2021-09-18 16:29:24 +08:00
parent a7e8633c2e
commit 9085aa37af
1 changed files with 8 additions and 6 deletions

View File

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