Explorar el Código

修复用户编辑时角色和部门存在无法修改情况

RuoYi hace 3 años
padre
commit
58e07ba142
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      ruoyi-ui/src/views/system/user/index.vue

+ 2 - 2
ruoyi-ui/src/views/system/user/index.vue

@@ -576,8 +576,8 @@ export default {
576 576
         this.form = response.data;
577 577
         this.postOptions = response.posts;
578 578
         this.roleOptions = response.roles;
579
-        this.form.postIds = response.postIds;
580
-        this.form.roleIds = response.roleIds;
579
+        this.$set(this.form, "postIds", response.postIds);
580
+        this.$set(this.form, "roleIds", response.roleIds);
581 581
         this.open = true;
582 582
         this.title = "修改用户";
583 583
         this.form.password = "";