Browse Source

tabbar刷新调整

jwyu 3 years ago
parent
commit
af0f2dcf45
1 changed files with 6 additions and 1 deletions
  1. 6 1
      mixin/index.js

+ 6 - 1
mixin/index.js

@@ -45,7 +45,12 @@ module.exports = {
   onLoad() {},
   onShow(){
     this.handleActivityListPageRefresh()
-    this.$store.dispatch('getTabBar')
+
+    const page = this.$mp&&this.$mp.page;
+    if(tabbarPathList.includes(page.route)){
+      this.$store.dispatch('getTabBar')
+    }
+
     this.handleSetTabBarItem()
   },
   methods: {