components/tab-bar/tab-bar.vue
@@ -22,13 +22,14 @@ // tabBarList: this.$store.state.userTabbar }; }, computed:{ tabBarList(){ return this.$store.state.userTabbar computed: { tabBarList() { return this.$store.state.userTabbar; } }, methods: { tabbarchange(e) { console.log(e, 'tab切换地址'); uni.switchTab({ url: '/' + this.tabBarList[e].pagePath }); @@ -40,7 +41,7 @@ ::v-deep.tab-bar { .u-tabbar { &__content { background: #ececec!important; background: #ececec !important; &__item-wrapper { height: vww(50); }