feat; add config for startup page #40

This commit is contained in:
Hakadao
2023-09-29 23:19:07 +08:00
parent 46f4df7d58
commit 578ddca19e
8 changed files with 32 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ import { AppPage, LanguageType } from '~/enums/appEnums'
import { getUserID, hexToRGBA, smoothScrollToTop } from '~/utils/main'
import emitter from '~/utils/mitt'
const activatedPage = ref<AppPage>(AppPage.Home)
const activatedPage = ref<AppPage>(settings.value.startupPage ?? AppPage.Home)
const { locale } = useI18n()
const [showSettings, toggleSettings] = useToggle(false)
// const isDark = useDark({