This commit is contained in:
wchino
2026-06-13 17:38:25 +08:00
parent e7e938f261
commit 7b33d9f9fa
190 changed files with 23222 additions and 4336 deletions

View File

@@ -12,7 +12,12 @@ const props = withDefaults(
{ size: 'md' },
);
const useCustomLogo = computed(() => Boolean(props.logoUrl?.trim()));
function isCustomLogo(url?: string | null) {
const value = url?.trim();
return Boolean(value && !value.includes('flagcdn.com'));
}
const useCustomLogo = computed(() => isCustomLogo(props.logoUrl));
const src = computed(() =>
teamFlagUrl(props.teamCode, props.teamName, props.logoUrl),
);