添加页面过渡效果,更新路由元信息以设置页面标题,优化页脚内容和样式

This commit is contained in:
2025-03-05 22:23:00 +08:00
parent e423b5a1d4
commit e90753a878
6 changed files with 70 additions and 14 deletions

View File

@ -6,8 +6,10 @@ import AppFooter from "./components/AppFooter.vue";
<template>
<div>
<NavBar />
<router-view />
<AppFooter />
<transition name="fade" mode="out-in">
<router-view />
</transition>
<AppFooter v-if="!$route.meta.hideFooter" />
</div>
</template>
@ -27,4 +29,14 @@ html, body {
.main-content {
flex: 1; /* 占据剩余空间 */
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s ease;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
</style>