保存后返回列表

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() { save() {
console.log(this.form) console.log(this.form)
courseAdd(this.form) courseAdd(this.form).then((res) => {
.then(res => {
if (res.code == 200) { if (res.code == 200) {
this.$message.info("保存成功") this.$message.info('保存成功')
//
this.$router.push({ path: '/course/CourseList', query: {} })
} }
}) } })
},
}, },
} }
</script> </script>