Files
AI-Bill/apps/frontend/src/App.vue

23 lines
684 B
Vue
Raw Normal View History

2025-11-01 09:24:26 +08:00
<script setup lang="ts">
import { computed } from 'vue';
import { useRoute, RouterView } from 'vue-router';
import BottomTabBar from './components/navigation/BottomTabBar.vue';
import QuickAddButton from './components/actions/QuickAddButton.vue';
const route = useRoute();
const showAppShell = computed(() => !route.path.startsWith('/auth'));
</script>
<template>
<div class="min-h-screen bg-gray-100 text-gray-900">
2025-11-12 16:04:50 +08:00
<div
2025-11-12 18:20:19 +08:00
class="mx-auto min-h-screen relative w-full max-w-full"
2025-11-12 16:04:50 +08:00
:class="showAppShell ? 'pb-24' : 'pb-0'"
>
2025-11-01 09:24:26 +08:00
<RouterView />
<QuickAddButton v-if="showAppShell" />
</div>
<BottomTabBar v-if="showAppShell" />
</div>
</template>