diff --git a/.gitignore b/.gitignore index ed15cb7..9652515 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ selenium-debug.log # common -common/common.vue \ No newline at end of file +common/common.vue +/src/views/common/common.vue diff --git a/src/views/modules/course/course-add-or-update.vue b/src/views/modules/course/course-add-or-update.vue index a34ca86..94f302d 100644 --- a/src/views/modules/course/course-add-or-update.vue +++ b/src/views/modules/course/course-add-or-update.vue @@ -24,7 +24,13 @@ - + + + + { - this.flag = false; + }).then(({ data }) => { if (data && data.code == 0) { this.$message.success("操作成功"); this.$nextTick(() => { this.handleClose(); }); } else { + this.flag = false; this.$message.error(data.msg); } }).catch(e =>{ @@ -637,6 +637,7 @@ export default { this.$refs["ClassModelForm"].resetFields(); this.userList = []; this.courseList = []; + this.flag = false; }); this.$emit("handleClose"); }