1
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 21s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
Docker Build & Deploy / Deploy to Production (push) Successful in 6s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s

This commit is contained in:
SunCheng
2026-02-11 17:05:18 +08:00
parent d8a7c11490
commit 0fed10b60d
8 changed files with 15 additions and 95 deletions

View File

@@ -16,6 +16,10 @@
/>
</keep-alive>
</router-view>
<!-- 底部导航栏全局统一 -->
<GlassBottomNav v-if="showNav" />
<GlobalAddBill
v-if="isShowAddBill"
@success="handleAddTransactionSuccess"
@@ -152,6 +156,7 @@ import { RouterView, useRoute } from 'vue-router'
import { ref, onMounted, onUnmounted, computed, watch } from 'vue'
import { useMessageStore } from '@/stores/message'
import GlobalAddBill from '@/components/Global/GlobalAddBill.vue'
import GlassBottomNav from '@/components/GlassBottomNav.vue'
import '@/styles/common.css'
import { needRefresh, updateServiceWorker } from './registerServiceWorker'
@@ -256,6 +261,16 @@ const isShowAddBill = computed(() => {
return route.path === '/' || route.path === '/balance' || route.path === '/message' || route.path === '/calendar' || route.path === '/calendar-v2'
})
// 需要显示底部导航栏的路由
const showNav = computed(() => {
return [
'/', '/statistics-v2',
'/calendar', '/calendar-v2',
'/balance', '/message',
'/budget', '/setting'
].includes(route.path)
})
onUnmounted(() => {
if (mediaQuery) {
mediaQuery.removeEventListener('change', updateTheme)