陶杰
2024-12-10 b3a62a1875b98ae6bbce009beef49a2146748894
pages/home/supplier-home.vue
@@ -337,7 +337,13 @@
      }
   },
   async onPullDownRefresh() {
      await this.$store.dispatch('getCurrentInfo')
      // 需要判断当前是否是子账号,如果是子账号则需要刷新账号切换的信息
      const currentInfo = this.$store.state.currentInfo
      if(currentInfo&&currentInfo.supplierSub&&currentInfo.supplierSub.id){
         await this.$store.dispatch('getSwitchSubAccount',currentInfo.supplierSub)
      }else{
         await this.$store.dispatch('getCurrentInfo')
      }
      await this.getTj(true)
      uni.stopPullDownRefresh()
   },