Explorar o código

用户编辑页优化:新增主用户ID设置并修复组角色列表初始化问题

yusheng hai 10 meses
pai
achega
7db62aeb28
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/views/system/user/components/user-edit.vue

+ 1 - 0
src/views/system/user/components/user-edit.vue

@@ -286,6 +286,7 @@
         let id = this.data?.id || userRow?.id;
         getById(id).then((res) => {
           this.form = res.data;
+          this.form.mainUserId = id;
           this.getUserDetail();
           this.form.groupRolePOList = [];
           res.data.groupRoleList.forEach((item) => {