优化代码

This commit is contained in:
RuoYi
2026-01-28 21:19:42 +08:00
parent df0f7d16a4
commit 15e0913714
18 changed files with 32 additions and 34 deletions

View File

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