系统名称使用变量修正

This commit is contained in:
yaoyn
2025-05-30 11:29:54 +08:00
parent 88c193fc0e
commit e2d478c851
5 changed files with 17 additions and 9 deletions

View File

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