修复地图中 鼠标悬浮显示机器 优化显示登录用用户的角色
This commit is contained in:
@@ -239,6 +239,11 @@ export default function AppLayout() {
|
||||
/>
|
||||
)}
|
||||
<span style={{ fontSize: 'clamp(12px, 1vw, 14px)' }}>{userInfo?.nickName || userInfo?.username}</span>
|
||||
{userInfo?.roleKey === "admin" && <Tag color="red">管理员</Tag>}
|
||||
{userInfo?.roleKey === "manager" && <Tag color="orange">组织管理员</Tag>}
|
||||
{userInfo?.roleKey === "siteManager" && <Tag color="blue">场站管理员</Tag>}
|
||||
|
||||
|
||||
</Space>
|
||||
<Button type="text" danger icon={<LogoutOutlined />} onClick={handleLogout} style={{ fontSize: 'clamp(12px, 1vw, 14px)' }}>
|
||||
{t('layout.logout')}
|
||||
|
||||
Reference in New Issue
Block a user