fix: correct background image assignment for town modal banner

This commit is contained in:
zhangyuheng
2026-03-17 00:27:37 +08:00
parent 6048d4e9dc
commit 4dda002f76

View File

@@ -180,8 +180,8 @@ document.addEventListener('DOMContentLoaded', () => {
var gradient = getTownGradient(item);
banner.className = 'town-modal-banner' + (hasLogo ? '' : ' no-logo');
if (hasLogo) {
banner.style.backgroundImage = "url('" + item.logo + "')";
banner.style.background = '';
banner.style.backgroundImage = "url('" + item.logo + "')";
banner.innerHTML = '';
} else {
banner.style.backgroundImage = '';