fix:code格式规整

This commit is contained in:
shijing 2025-03-28 09:25:16 +08:00
parent 8ce6878aa3
commit 6ed3fc5e7f
1 changed files with 8 additions and 11 deletions

View File

@ -379,17 +379,14 @@ export default {
if (valid) { if (valid) {
that.isSaveing = true; that.isSaveing = true;
if (that.mode === "add") { if (that.mode === "add") {
that.$API.mtm.route.create that.$API.mtm.route.create.req(that.form).then((res) => {
.req(that.form) that.isSaveing = false;
.then((res) => { that.$emit("success");
that.isSaveing = false; that.visible = false;
that.$emit("success"); that.$message.success("操作成功");
that.visible = false; }).catch((res) => {
that.$message.success("操作成功"); that.isSaveing = false;
}) });
.catch((res) => {
that.isSaveing = false;
});
} else { } else {
that.$API.mtm.route.update.req(that.form.id, that.form).then((res) => { that.$API.mtm.route.update.req(that.form.id, that.form).then((res) => {
that.isSaveing = false; that.isSaveing = false;