From 9575d22be43b47ca4ccc31b68fe449f0772de79f Mon Sep 17 00:00:00 2001 From: BBIT-Kai <2911862937@qq.com> Date: Wed, 29 Apr 2026 17:08:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/config/env.ts | 1 + web/src/env.d.ts | 1 + web/src/layouts/MainLayout.vue | 11 ++++++++++- web/src/views/auth/LoginView.vue | 4 +++- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/web/src/config/env.ts b/web/src/config/env.ts index 95a8196..bb64806 100644 --- a/web/src/config/env.ts +++ b/web/src/config/env.ts @@ -5,5 +5,6 @@ function normalizeUrl(url: string | undefined, fallback: string) { export const appEnv = { appTitle: normalizeUrl(import.meta.env.VITE_APP_TITLE, '通用管理平台'), + appLogo: normalizeUrl(import.meta.env.VITE_APP_LOGO, ''), apiBaseUrl: normalizeUrl(import.meta.env.VITE_API_BASE_URL, '/api') } diff --git a/web/src/env.d.ts b/web/src/env.d.ts index f0b2f80..dadde31 100644 --- a/web/src/env.d.ts +++ b/web/src/env.d.ts @@ -2,6 +2,7 @@ interface ImportMetaEnv { readonly VITE_APP_TITLE: string + readonly VITE_APP_LOGO?: string readonly VITE_API_BASE_URL: string readonly VITE_API_PROXY_TARGET?: string } diff --git a/web/src/layouts/MainLayout.vue b/web/src/layouts/MainLayout.vue index 7c42321..3ef18fc 100644 --- a/web/src/layouts/MainLayout.vue +++ b/web/src/layouts/MainLayout.vue @@ -15,7 +15,8 @@ @expand="authStore.layoutCollapsed = false" >
- + + {{ appTitle }}