功能添加
This commit is contained in:
@@ -3,16 +3,19 @@
|
||||
<div class="app-root">
|
||||
<RouterView />
|
||||
<van-tabbar v-model="active" v-show="showTabbar">
|
||||
<van-tabbar-item icon="notes-o" to="/calendar">
|
||||
<van-tabbar-item icon="notes" to="/calendar">
|
||||
日历
|
||||
</van-tabbar-item>
|
||||
<van-tabbar-item icon="balance-list-o" to="/" @click="handleTabClick('/')">
|
||||
<van-tabbar-item icon="chart-trending-o" to="/statistics">
|
||||
统计
|
||||
</van-tabbar-item>
|
||||
<van-tabbar-item icon="balance-list" to="/" @click="handleTabClick('/')">
|
||||
账单
|
||||
</van-tabbar-item>
|
||||
<van-tabbar-item icon="records-o" to="/email" @click="handleTabClick('/email')">
|
||||
<van-tabbar-item icon="records" to="/email" @click="handleTabClick('/email')">
|
||||
邮件
|
||||
</van-tabbar-item>
|
||||
<van-tabbar-item icon="setting-o" to="/setting">
|
||||
<van-tabbar-item icon="setting" to="/setting">
|
||||
设置
|
||||
</van-tabbar-item>
|
||||
</van-tabbar>
|
||||
@@ -53,7 +56,8 @@ const showTabbar = computed(() => {
|
||||
return route.path === '/' ||
|
||||
route.path === '/calendar' ||
|
||||
route.path === '/email' ||
|
||||
route.path === '/setting'
|
||||
route.path === '/setting' ||
|
||||
route.path === '/statistics'
|
||||
})
|
||||
|
||||
const active = ref(0)
|
||||
|
||||
Reference in New Issue
Block a user