From 80948d6d59dfaedeb2e5062d6987b0a9888e2e2f Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Wed, 16 Oct 2024 13:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E6=B7=BB=E5=8A=A0=E8=87=AA?= =?UTF-8?q?=E8=80=83=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/course/course-add-or-update.vue | 15 +++++++++++++-- src/views/modules/miniClass/classAddType.vue | 5 +++-- 2 files changed, 16 insertions(+), 4 deletions(-) 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"); }