Fix auth visibility and map user location persistence issues

This commit is contained in:
2026-03-01 14:22:42 -05:00
parent 59de2c7c23
commit b7e6731c54
2 changed files with 48 additions and 8 deletions

View File

@ -1,12 +1,12 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { defineAsyncComponent } from 'vue'
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const LoginForm = defineAsyncComponent(() => import('@/components/auth/LoginForm.vue'))
const RegisterForm = defineAsyncComponent(() => import('@/components/auth/RegisterForm.vue'))
import LoginForm from '@/components/auth/LoginForm.vue'
import RegisterForm from '@/components/auth/RegisterForm.vue'
const isLogin = ref(true)
const toggleAuth = () => { isLogin.value = !isLogin.value }