做几方面优化
This commit is contained in:
@@ -352,7 +352,12 @@ async function submitSSOLogin() {
|
||||
account,
|
||||
name: (data.identity && (data.identity.nickname || data.identity.mobile)) || account,
|
||||
tid: currentTid,
|
||||
tenant_name: (data.tenants || []).map(t => t.tenant_name).join('、')
|
||||
// 顶部展示当前登录的企业,而不是该账号可进入的全部企业
|
||||
tenant_name: (() => {
|
||||
const list = data.tenants || []
|
||||
const hit = list.find(t => t.tid === currentTid)
|
||||
return (hit && hit.tenant_name) || (list[0] && list[0].tenant_name) || ''
|
||||
})()
|
||||
}
|
||||
})
|
||||
navigateAfterLogin()
|
||||
|
||||
Reference in New Issue
Block a user