From 6ed3fc5e7f8666fd9d12cb88499cacac3fa4a03f Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 28 Mar 2025 09:25:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:code=E6=A0=BC=E5=BC=8F=E8=A7=84=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/route_form.vue | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index 28d61a48..f307d97a 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -379,17 +379,14 @@ export default { if (valid) { that.isSaveing = true; if (that.mode === "add") { - that.$API.mtm.route.create - .req(that.form) - .then((res) => { - that.isSaveing = false; - that.$emit("success"); - that.visible = false; - that.$message.success("操作成功"); - }) - .catch((res) => { - that.isSaveing = false; - }); + that.$API.mtm.route.create.req(that.form).then((res) => { + that.isSaveing = false; + that.$emit("success"); + that.visible = false; + that.$message.success("操作成功"); + }).catch((res) => { + that.isSaveing = false; + }); } else { that.$API.mtm.route.update.req(that.form.id, that.form).then((res) => { that.isSaveing = false;