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 @@ -->