diff --git a/src/layout/index.vue b/src/layout/index.vue index 3021e22..27780bb 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -5,41 +5,20 @@ import { ref, reactive, toRefs } from 'vue' const useTabBar = () => { const state = reactive({ tabBar: [ - { + { title: '首页', to: { name: 'Home' }, icon: 'home-o' - }, - { - title: '分类', - to: { - name: 'Category' - }, - icon: 'apps-o' - }, - { - title: '福利票', - to: { - name:'Welfare' - }, - icon: 'gift-o' - }, - { - title: '订单', - to: { - name:'Orders' - }, - icon: 'orders-o' - }, - { + }, + { title: '我的', to: { name:'About' }, icon: 'user-o' - } + } ] }) return toRefs(state) @@ -47,7 +26,7 @@ const useTabBar = () => { const { tabBar } = useTabBar() const handleChange = (value) => { - console.log(value,'valueeeeeee'); + // console.log(value,'valueeeeeee'); } </script> @@ -61,7 +40,7 @@ const handleChange = (value) => { <router-view v-else></router-view> </div> <div class="layout-footer"> - <!-- <TabBar :data="tabBar" @chang="handleChange"></TabBar> --> + <TabBar :data="tabBar" @chang="handleChange"></TabBar> </div> </div> </template>