更新manifest.json以支持minimal-ui显示模式;在App.vue中为van-tabbar添加安全区域适配
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 13s
Docker Build & Deploy / Deploy to Production (push) Successful in 6s

This commit is contained in:
孙诚
2025-12-25 16:05:31 +08:00
parent 5618da8caf
commit e217abb5d2
2 changed files with 9 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
"short_name": "账单管理",
"description": "个人账单管理与邮件解析系统",
"start_url": "/",
"display": "standalone",
"display": "minimal-ui",
"background_color": "#ffffff",
"theme_color": "#1989fa",
"orientation": "portrait-primary",

View File

@@ -1,7 +1,7 @@
<template>
<van-config-provider :theme="theme">
<RouterView />
<van-tabbar v-model="active" v-show="showTabbar">
<van-tabbar v-model="active" v-show="showTabbar" safe-area-inset-bottom>
<van-tabbar-item icon="notes-o" to="/calendar">
日历
</van-tabbar-item>
@@ -62,5 +62,11 @@ const handleTabClick = (path) => {
</script>
<style scoped>
/* 仅在移动设备上添加底部安全区域适配 */
@media only screen and (max-width: 768px) {
:deep(.van-tabbar) {
/* 为小白条添加额外高度 */
padding-bottom: env(safe-area-inset-bottom);
}
}
</style>