Files
datahub/frontend/src/App.vue
T

16 lines
321 B
Vue
Raw Normal View History

2025-11-05 16:34:40 +08:00
<script setup lang="ts">
2026-03-18 13:53:36 +08:00
import MainLayout from '@/components/layouts/MainLayout.vue'
const route = useRoute()
const isAuthPage = computed(() =>
['/login', '/register'].includes(route.path)
)
2025-11-05 16:34:40 +08:00
</script>
<template>
2026-03-18 13:53:36 +08:00
<RouterView v-if="isAuthPage" />
<MainLayout v-else>
<RouterView />
</MainLayout>
2025-11-05 16:34:40 +08:00
</template>