Explorar el Código

tabbar刷新调整

jwyu hace 3 años
padre
commit
af0f2dcf45
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  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: {