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) {
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;