Update components/settings/SettingsFontSize.vue

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
pull/980/head
wheat 2023-01-12 11:03:26 -05:00 zatwierdzone przez GitHub
rodzic 799d157424
commit 16c316b0e3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -5,9 +5,9 @@ import type { FontSize } from '~/types'
const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as FontSize[]
const fontSize = useFontSizeRef()
const setFontSize = (e: any) => {
if ('valueAsNumber' in e.target)
fontSize.value = sizes[e.target.valueAsNumber]
const setFontSize = (e: Event) => {
if (e.target && 'valueAsNumber' in e.target)
fontSize.value = sizes[e.target.valueAsNumber as number]
}
</script>