优化代码

This commit is contained in:
RuoYi
2026-01-28 13:42:42 +08:00
parent 245baa705b
commit 2cf825dd3d
18 changed files with 32 additions and 34 deletions

View File

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