From 8c6d83294e39319ef7e19e0864c0eba3cff8d659 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 26 May 2023 11:37:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=A4=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qianxinan/AppGroupTags/AppGroupTags.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/project/qianxinan/AppGroupTags/AppGroupTags.vue b/src/project/qianxinan/AppGroupTags/AppGroupTags.vue index 6cdc3095..8b77762b 100644 --- a/src/project/qianxinan/AppGroupTags/AppGroupTags.vue +++ b/src/project/qianxinan/AppGroupTags/AppGroupTags.vue @@ -54,9 +54,13 @@ ...mapState(['user']), }, onLoad() { - this.deptList = [{name: '', id: this.user.wxMainDepartmentId}] - this.getList() - this.getTotal() + this.$http.post(`/app/wxcp/wxdepartment/queryDetailById?id=${this.user.wxMainDepartmentId}`).then(res=> { + if(res?.data) { + this.deptList = [{name: res.data.name, id: this.user.wxMainDepartmentId}] + this.getList() + this.getTotal() + } + }) uni.$on('updateGroup', () => { this.getList() this.getTotal()