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