From e2d478c8513a64559fa33eabf442d02e076e0ce8 Mon Sep 17 00:00:00 2001 From: yaoyn Date: Fri, 30 May 2025 11:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=90=8D=E7=A7=B0=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=8F=98=E9=87=8F=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 6 ++++-- index.html | 6 ++++-- src/components/Application/src/AppLogo.vue | 8 +++++--- src/hooks/web/useTitle.ts | 2 +- src/views/dashboard/analysis/index.vue | 4 +++- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.env b/.env index 2eb64c5..4fc23da 100644 --- a/.env +++ b/.env @@ -4,11 +4,13 @@ VITE_PORT = 3100 # spa-title VITE_GLOB_APP_TITLE = 全代码平台 -# spa shortname +# spa shortname(英文缩写) VITE_GLOB_APP_SHORT_NAME = 全代码平台 -# 应用名称 +# 应用名称(仅展示在登录页和左上角logo旁,其他情况用VITE_GLOB_APP_TITLE) VITE_SYSTEM_NAME = 全代码平台 +# 应用名称简写,用于空间不足的界面显示(左上角logo旁,7个字以内,超出变成...) +# VITE_SYSTEM_SHORT_NAME = 全代码平台 # 响应式布局的表单宽度分界 VITE_RESP_LG_WIDTH = 1280 diff --git a/index.html b/index.html index 46206ca..376de98 100644 --- a/index.html +++ b/index.html @@ -33,9 +33,11 @@ const { data } = await responseStream.json(); if (data.shortName) { document.title = data.shortName; - document.getElementById('app-loading-title').innerText = data.shortName; + if(document.getElementById('app-loading-title')){ + document.getElementById('app-loading-title').innerText = data.shortName; + } } - if (data.refreshLogoUrl) { + if (data.refreshLogoUrl&&document.getElementById('app-loading-logo')) { document.getElementById('app-loading-logo').setAttribute('src', data.refreshLogoUrl); } } catch { diff --git a/src/components/Application/src/AppLogo.vue b/src/components/Application/src/AppLogo.vue index 9abb8db..b4d7d7d 100644 --- a/src/components/Application/src/AppLogo.vue +++ b/src/components/Application/src/AppLogo.vue @@ -4,10 +4,10 @@ -->