♻️ Moved sign in from Passport to here

This commit is contained in:
2024-08-12 15:55:15 +08:00
parent b86d446607
commit 48da7d1a46
19 changed files with 968 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ import { useTheme } from "vuetify"
import "@unocss/reset/tailwind.css"
const theme = useTheme()
const userinfo = useUserinfo()
onMounted(() => {
theme.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"
@@ -18,5 +19,9 @@ onMounted(() => {
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", event => {
theme.global.name.value = event.matches ? "dark" : "light"
})
if (checkLoggedIn()) {
userinfo.readProfiles()
}
})
</script>