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) {