56
chenyc
2022-09-23 87eece34dfd7482102d5380941c7df0e15a4b515
src/views/home/index.vue
@@ -115,9 +115,9 @@
                </div>
            </div>
        </div>
        <van-tabbar v-model="active" route @change="tabChang">
            <van-tabbar-item name="home" @click="active = 'home'" icon="home-o">首页</van-tabbar-item>
            <van-tabbar-item name="mydo" @click="active = 'mydo'" icon="manager">我的</van-tabbar-item>
        <van-tabbar v-model="active" @change="tabChang">
            <van-tabbar-item name="home" icon="like">首页</van-tabbar-item>
            <van-tabbar-item name="my" icon="manager">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>
@@ -175,7 +175,6 @@
    ]
    const active=ref('home')
    const tabChang=(index:any)=>{
        alert(index)
        if (index==='home'){
            router.push('/')
        } else {