diff --git a/packages/frontend/src/pages/settings/pari.vue b/packages/frontend/src/pages/settings/pari.vue index 852b64f7e..c5cfdc65d 100644 --- a/packages/frontend/src/pages/settings/pari.vue +++ b/packages/frontend/src/pages/settings/pari.vue @@ -110,7 +110,7 @@ import FormSection from '@/components/form/section.vue'; const defaultFont = getDefaultFontSettings(); console.log(defaultFont); -const fontSizeNumber = ref(Number(miLocalStorage.getItem('fontSize') || 1)); +const fontSizeNumber = ref(Number(miLocalStorage.getItem('fontSize') ?? 2)); const fontSizeNumberOld = ref(fontSizeNumber.value); const fontSizePx = computed(() => fontSizeNumber.value + 14); diff --git a/packages/frontend/src/scripts/font-settings.ts b/packages/frontend/src/scripts/font-settings.ts index 35ced05bb..771d7e3c8 100644 --- a/packages/frontend/src/scripts/font-settings.ts +++ b/packages/frontend/src/scripts/font-settings.ts @@ -1,5 +1,5 @@ import { computed, ref, watch } from 'vue'; -import type { Ref, ComputedRef } from 'vue'; +import type { Ref } from 'vue'; import { miLocalStorage } from '@/local-storage.js'; import { i18n } from '@/i18n.js'; @@ -62,7 +62,7 @@ async function loadFontStyle(fontId: string) { export function getDefaultFontSettings() { const def_arr = miLocalStorage.getItem('defaultFontFace')?.split('_'); - const fontFace = ref(def_arr?.[0] ?? 'system-ui'); + const fontFace = ref(def_arr?.[0] ?? 'maokentangyuan'); const fontFaceType = ref(def_arr?.[1] ?? ''); const availableTypes = computed(() => getFontOptionsList(fontFace.value));