调整编辑角色
This commit is contained in:
parent
3ecc0558b1
commit
c5cee6ee5c
|
@ -239,10 +239,15 @@ function edieUserData(row: User) {
|
|||
userInfo.name = row.name;
|
||||
userInfo.mobile = row.mobile;
|
||||
userInfo.registerTime = row.registerTime;
|
||||
userInfo.roleList = row.roleList;
|
||||
userInfo.Rids = row.roleList.map((item) => {
|
||||
return item.roleId;
|
||||
});
|
||||
if (row?.roleList) {
|
||||
userInfo.roleList = row.roleList;
|
||||
userInfo.Rids = row.roleList.map((item) => {
|
||||
return item.roleId;
|
||||
});
|
||||
} else {
|
||||
userInfo.roleList = [];
|
||||
userInfo.Rids = [];
|
||||
}
|
||||
editFormShow.value = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue