fix(ui): 当前身份显示账号类型文本标签(后端account_type_label), 不再显示代码
This commit is contained in:
@@ -20,7 +20,8 @@ import {
|
|||||||
export function AppShell() {
|
export function AppShell() {
|
||||||
const { role, user, logout } = useAuth();
|
const { role, user, logout } = useAuth();
|
||||||
const groups = navForRole(role);
|
const groups = navForRole(role);
|
||||||
const roleLabel = role || "运营";
|
// 展示文本标签(账号类型): 运营方/载体方/OPC/服务方 —— 后端下发 account_type_label, 不做代码映射
|
||||||
|
const roleLabel = (user as { account_type_label?: string })?.account_type_label || role || "运营方";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex min-h-screen">
|
<div className="flex min-h-screen">
|
||||||
|
|||||||
Reference in New Issue
Block a user