From b3a62a1875b98ae6bbce009beef49a2146748894 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期二, 10 十二月 2024 10:43:56 +0800 Subject: [PATCH] 1.供应商子账号:工作台、个人中心下拉 --- pages/home/supplier-home.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue index bb2b34f..f7c9542 100644 --- a/pages/home/supplier-home.vue +++ b/pages/home/supplier-home.vue @@ -337,7 +337,13 @@ } }, async onPullDownRefresh() { - await this.$store.dispatch('getCurrentInfo') + // 需要判断当前是否是子账号,如果是子账号则需要刷新账号切换的信息 + const currentInfo = this.$store.state.currentInfo + if(currentInfo&¤tInfo.supplierSub&¤tInfo.supplierSub.id){ + await this.$store.dispatch('getSwitchSubAccount',currentInfo.supplierSub) + }else{ + await this.$store.dispatch('getCurrentInfo') + } await this.getTj(true) uni.stopPullDownRefresh() }, -- Gitblit v1.9.3