Files
Mainpage/src/App.vue

43 lines
662 B
Vue
Raw Normal View History

2025-03-02 22:11:27 +08:00
<script setup>
2025-03-04 11:39:37 +08:00
import NavBar from "./components/NavBar.vue";
import AppFooter from "./components/AppFooter.vue";
2025-03-02 22:11:27 +08:00
</script>
2025-03-01 21:30:49 +08:00
<template>
<div>
2025-03-04 11:39:37 +08:00
<NavBar />
<transition name="fade" mode="out-in">
<router-view />
</transition>
<AppFooter v-if="!$route.meta.hideFooter" />
</div>
2025-03-01 21:30:49 +08:00
</template>
2025-03-04 21:29:51 +08:00
<style scoped>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
.app-container {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.main-content {
flex: 1; /* 占据剩余空间 */
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s ease;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
2025-03-04 21:29:51 +08:00
</style>