浏览代码

tabbar刷新调整

jwyu 3 年之前
父节点
当前提交
af0f2dcf45
共有 1 个文件被更改,包括 6 次插入1 次删除
  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: {