feat: stabilize admin dashboard, refactor group management, implement PWA, and fix routing

This commit is contained in:
2026-05-03 19:51:18 +05:00
parent 622ca04170
commit 0598e07823
36 changed files with 1387 additions and 467 deletions
+8 -1
View File
@@ -33,7 +33,7 @@ definePageMeta({
layout: 'default'
})
const { googleSignIn, initAuth } = useAuth()
const { googleSignIn, initAuth, isAuthenticated } = useAuth()
const loading = ref(false)
const signInWithGoogle = async () => {
@@ -49,6 +49,13 @@ const signInWithGoogle = async () => {
}
onMounted(() => {
if (isAuthenticated.value) {
navigateTo('/')
}
initAuth()
})
watch(isAuthenticated, (val) => {
if (val) navigateTo('/')
})
</script>