优化代码

This commit is contained in:
RuoYi
2026-01-28 14:18:51 +08:00
parent 4a0faad4bc
commit 604b6877f0
18 changed files with 32 additions and 34 deletions

View File

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