From f22eb9a00438d2c52bf7acf9da2d7dc0d4c776d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BB=95=E4=BC=9F?= <499672082@qq.com> Date: Thu, 30 Dec 2021 21:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=83=A8=E9=97=A8=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wechat/AppAddressBook/components/List.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/wechat/AppAddressBook/components/List.vue b/packages/wechat/AppAddressBook/components/List.vue index 70cd2177..e82ec6fc 100644 --- a/packages/wechat/AppAddressBook/components/List.vue +++ b/packages/wechat/AppAddressBook/components/List.vue @@ -500,15 +500,13 @@ export default { }, syncMembers() { - if (!this.search.departmentId) { - return this.$message.error('请选择部门') - } - + let departId = this.search.departmentId; + if (!!departId) departId = 1; this.btnLoading = true this.instance.post(`/app/wxcp/wxdepartment/syncDepart`).then(res => { if (res.code == 0) { - this.instance.post(`/app/wxcp/wxdepartment/syncUser?departmentId=${this.search.departmentId}`, null, { + this.instance.post(`/app/wxcp/wxdepartment/syncUser?departmentId=${departId}`, null, { timeout: 1000000 }).then(res => { if (res.code == 0) {