RuoYi
2026-03-09 de1dbe61a50b8154007c80cb01933ebf87f8c94a
ruoyi-ui/src/views/system/dept/index.vue
@@ -311,13 +311,13 @@
      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()