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(() => {
|
||||
if (siteSettingsLoading.value) {
|
||||
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
|
||||
return 'http://localhost:3003/uploads/site-settings/loading-logo.png';
|
||||
});
|
||||
|
||||
// Get site name with fallback
|
||||
@ -42,7 +35,6 @@ const getSiteName = () => {
|
||||
:src="loadingLogoSrc"
|
||||
:alt="getSiteName()"
|
||||
class="max-w-[180px] max-h-[60px] object-contain"
|
||||
@error="$event.target.src = '/img/logo/corradAF-logo.svg'"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user