Explorar el Código

:zap: 修复用户管理编辑、查看未将部门角色绑定成功的bug

smallchill hace 7 años
padre
commit
048d1a3e97
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/system/user.vue

+ 1 - 1
src/views/system/user.vue

@@ -380,7 +380,7 @@
       beforeOpen(done, type) {
         if (["edit", "view"].includes(type)) {
           getUser(this.form.id).then(res => {
-            this.form = res.data.data;
+            this.form = res.data;
             this.form.deptId = this.form.deptId.split(",");
             this.form.deptId.forEach((ele, index) => {
               this.form.deptId[index] = Number(ele);