components/tab-bar/tab-bar.vue
@@ -24,11 +24,12 @@ }, computed:{ tabBarList(){ return this.$store.state.userTabbar return this.$store.state.userTabbar; } }, methods: { tabbarchange(e) { console.log(e, 'tab切换地址'); uni.switchTab({ url: '/' + this.tabBarList[e].pagePath });