diff --git a/frontend/src/views/Dashboard/Dashboard.vue b/frontend/src/views/Dashboard/Dashboard.vue index 8fbd614..e8dc3cb 100644 --- a/frontend/src/views/Dashboard/Dashboard.vue +++ b/frontend/src/views/Dashboard/Dashboard.vue @@ -461,6 +461,7 @@ const { activeSection, activeLabel, sections, selectSection } = useDashboardNavi diff --git a/frontend/src/views/Dashboard/DashboardNavigation.css b/frontend/src/views/Dashboard/DashboardNavigation.css index a615d8d..d40ff66 100644 --- a/frontend/src/views/Dashboard/DashboardNavigation.css +++ b/frontend/src/views/Dashboard/DashboardNavigation.css @@ -110,6 +110,30 @@ padding-top: 22px; } +.navigation-account { + display: grid; + gap: 5px; + margin: 0 8px 10px; + padding: 11px 12px; + border: 1px solid #e2e8f2; + border-radius: 12px; + background: #f8faff; + color: #263752; + overflow-wrap: anywhere; +} + +.navigation-account-label, +.navigation-account-role { + color: #7a879d; + font-size: 11px; + line-height: 1.4; +} + +.navigation-account strong { + font-size: 13px; + line-height: 1.4; +} + .navigation-error { margin: 0 8px 8px; color: #b42318; diff --git a/frontend/src/views/Dashboard/DashboardNavigation.vue b/frontend/src/views/Dashboard/DashboardNavigation.vue index 9f55593..5f46be5 100644 --- a/frontend/src/views/Dashboard/DashboardNavigation.vue +++ b/frontend/src/views/Dashboard/DashboardNavigation.vue @@ -3,9 +3,16 @@ import { useAccessDenied } from "../AccessDenied/AccessDenied.js"; const { loggingOut, error, logout } = useAccessDenied(); +const roleLabels = { + super_admin: "超级管理员", + admin: "管理员", + user: "普通用户", +}; + defineProps({ activeSection: { type: String, required: true }, sections: { type: Array, required: true }, + currentUser: { type: Object, default: null }, }); defineEmits(["select", "settings"]); @@ -73,6 +80,13 @@ defineEmits(["select", "settings"]); 系统设置