Fix loading screen to use hardcoded logo URL
This commit is contained in:
parent
f0298accb3
commit
9bca609235
@ -13,14 +13,7 @@ const refreshPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const loadingLogoSrc = computed(() => {
|
const loadingLogoSrc = computed(() => {
|
||||||
if (siteSettingsLoading.value) {
|
return 'http://localhost:3003/uploads/site-settings/loading-logo.png';
|
||||||
return '/img/logo/corradAF-logo.svg'; // Default fallback during loading state
|
|
||||||
}
|
|
||||||
const logoUrl = siteSettings.value?.siteLoadingLogo;
|
|
||||||
if (logoUrl && logoUrl.trim() !== '') {
|
|
||||||
return logoUrl; // Use logo from settings if available and not empty
|
|
||||||
}
|
|
||||||
return '/img/logo/corradAF-logo.svg'; // Ultimate fallback if no logo is set in settings
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Get site name with fallback
|
// Get site name with fallback
|
||||||
@ -42,7 +35,6 @@ const getSiteName = () => {
|
|||||||
:src="loadingLogoSrc"
|
:src="loadingLogoSrc"
|
||||||
:alt="getSiteName()"
|
:alt="getSiteName()"
|
||||||
class="max-w-[180px] max-h-[60px] object-contain"
|
class="max-w-[180px] max-h-[60px] object-contain"
|
||||||
@error="$event.target.src = '/img/logo/corradAF-logo.svg'"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user