调整编辑角色

This commit is contained in:
joylink_zhaoerwei 2024-10-23 14:44:03 +08:00
parent 3ecc0558b1
commit c5cee6ee5c

View File

@ -239,10 +239,15 @@ function edieUserData(row: User) {
userInfo.name = row.name; userInfo.name = row.name;
userInfo.mobile = row.mobile; userInfo.mobile = row.mobile;
userInfo.registerTime = row.registerTime; userInfo.registerTime = row.registerTime;
userInfo.roleList = row.roleList; if (row?.roleList) {
userInfo.Rids = row.roleList.map((item) => { userInfo.roleList = row.roleList;
return item.roleId; userInfo.Rids = row.roleList.map((item) => {
}); return item.roleId;
});
} else {
userInfo.roleList = [];
userInfo.Rids = [];
}
editFormShow.value = true; editFormShow.value = true;
} }