Fix auth form visibility (static imports + remove transition) and map zoom logic synchronization
This commit is contained in:
@ -1,13 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const { t } = useI18n()
|
||||
import LoginForm from '@/components/auth/LoginForm.vue'
|
||||
import RegisterForm from '@/components/auth/RegisterForm.vue'
|
||||
|
||||
const { t } = useI18n()
|
||||
const isLogin = ref(true)
|
||||
const toggleAuth = () => { isLogin.value = !isLogin.value }
|
||||
const router = useRouter()
|
||||
@ -67,11 +65,9 @@ onMounted(() => {
|
||||
{{ sessionExpiredMessage }}
|
||||
</div>
|
||||
|
||||
<!-- Formularios con transición -->
|
||||
<Transition name="auth-slide" mode="out-in">
|
||||
<LoginForm v-if="isLogin" @toggle="toggleAuth" />
|
||||
<RegisterForm v-else @toggle="toggleAuth" @success="isLogin = true" />
|
||||
</Transition>
|
||||
<!-- Formularios directos para evitar bugs de transición -->
|
||||
<LoginForm v-if="isLogin" @toggle="toggleAuth" />
|
||||
<RegisterForm v-else @toggle="toggleAuth" @success="isLogin = true" />
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
|
||||
Reference in New Issue
Block a user