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;