frontend layout and infrastructure

This commit is contained in:
2026-03-18 13:53:36 +08:00
parent 88df42fe52
commit 2b1a2f0c28
26 changed files with 986 additions and 460 deletions
+10 -6
View File
@@ -1,11 +1,15 @@
<script setup lang="ts">
import { RouterView } from 'vue-router'
import MainLayout from '@/components/layouts/MainLayout.vue'
const route = useRoute()
const isAuthPage = computed(() =>
['/login', '/register'].includes(route.path)
)
</script>
<template>
<RouterView />
<RouterView v-if="isAuthPage" />
<MainLayout v-else>
<RouterView />
</MainLayout>
</template>
<style scoped>
/* 应用全局样式可以在这里添加 */
</style>