From d17b14b0bcbace6ec971c15089cb25d9c427bb4c Mon Sep 17 00:00:00 2001 From: talktao Date: Thu, 24 Mar 2022 22:13:29 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=BA=95=E9=83=A8tab=E6=A0=8F?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/index.vue | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) 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'); } @@ -61,7 +40,7 @@ const handleChange = (value) => {