components/tab-bar/tab-bar.vue
@@ -35,11 +35,13 @@ }, computed: { tabBarList() { console.log(this.$store.state.userTabbar,'this.$store.state.userTabbar====') return this.$store.state.userTabbar; } }, methods: { tabbarchange(e) { console.log(this.tabBarList[e].pagePath,'this.tabBarList[e].pagePath===') uni.switchTab({ url: '/' + this.tabBarList[e].pagePath }); @@ -65,4 +67,4 @@ width: vww(20) !important; height: vww(20) !important; } </style> </style>