From 9ef9ab4057a71556df1f8bd2694ed2d508a318c8 Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Tue, 9 Jun 2026 11:28:46 +0800 Subject: [PATCH] add f --- src/components/layout/AppHeader.vue | 19 ++++++- src/layouts/MainLayout.vue | 5 +- .../admin/certification-reviews/index.vue | 53 ++++++++++++++----- .../components/EnterpriseInfo.vue | 40 ++++++++++++++ src/pages/certification/index.vue | 2 + vite.config.js | 2 +- 6 files changed, 106 insertions(+), 15 deletions(-) diff --git a/src/components/layout/AppHeader.vue b/src/components/layout/AppHeader.vue index 8d4b209..b37daa7 100644 --- a/src/components/layout/AppHeader.vue +++ b/src/components/layout/AppHeader.vue @@ -12,6 +12,12 @@ />
+

{{ title }}

{{ badge }} @@ -98,6 +104,10 @@ defineProps({ type: String, required: true }, + logo: { + type: String, + default: '' + }, badge: { type: String, default: '' @@ -190,7 +200,14 @@ const handleUserCommand = async (command) => { .header-title { display: flex; align-items: center; - gap: 12px; + gap: 10px; +} + +.header-logo { + width: 32px; + height: 32px; + flex-shrink: 0; + object-fit: contain; } .title-text { diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 187dcf9..af82e3d 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -9,6 +9,7 @@ userStore.isAdmin) -const headerTitle = computed(() => { +const headerTitle =computed(() => { return isAdmin.value ? '天远数据控制台' : '天远数据控制台' }) + const headerBadge = computed(() => { return isAdmin.value ? '管理员模式' : null }) diff --git a/src/pages/admin/certification-reviews/index.vue b/src/pages/admin/certification-reviews/index.vue index 1f7a901..14f341a 100644 --- a/src/pages/admin/certification-reviews/index.vue +++ b/src/pages/admin/certification-reviews/index.vue @@ -69,9 +69,9 @@