chore: lang flag

This commit is contained in:
胡鑫 2023-05-07 16:42:52 +08:00
parent d69274dc12
commit bfc9d23098
1 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,11 @@ const availableLocales = computed(() => {
// @ts-expect-error
return (locales.value).filter(i => i.code !== locale.value)
})
const flag: any = {
en: 'i-flag-gb-4x3',
zh: 'i-flag-cn-4x3',
}
</script>
<template>
@ -50,7 +55,7 @@ const availableLocales = computed(() => {
>
<span style="color: hsla(var(--a-base-c), 0.87); " class="font-bold">
{{
locale.code
flag[locale.code]
}}
</span>
</ABtn>