|
|
@ -133,7 +133,7 @@ export default { |
|
|
|
|
|
|
|
// 设置 初始显示角色信息 |
|
|
|
setInitialRoleId(visibleList) { |
|
|
|
const index = visibleList.findIndex(item => item.mine); |
|
|
|
const index = visibleList.findIndex(item => item.mine === '1'); |
|
|
|
const currentRole = index > 0 ? visibleList[index] : visibleList[0]; |
|
|
|
const currentRoleId = currentRole ? currentRole.id : ''; |
|
|
|
this.setRoleId(currentRoleId); |
|
|
|