优化代码

This commit is contained in:
RuoYi
2026-01-28 21:16:05 +08:00
parent 5d54693b27
commit 7d821ed043
18 changed files with 32 additions and 34 deletions

View File

@@ -477,13 +477,13 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.jobId != undefined) {
updateJob(this.form).then(response => {
updateJob(this.form).then(() => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addJob(this.form).then(response => {
addJob(this.form).then(() => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();