From 1966f9d7c7a5d963055fcb3d324a5889c7b69e84 Mon Sep 17 00:00:00 2001 From: kubbo <390378816@qq.com> Date: Tue, 22 Nov 2022 19:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppOpenChat/AppOpenChat.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/AppOpenChat/AppOpenChat.vue b/src/apps/AppOpenChat/AppOpenChat.vue index 26b4f39a..67e488c2 100644 --- a/src/apps/AppOpenChat/AppOpenChat.vue +++ b/src/apps/AppOpenChat/AppOpenChat.vue @@ -20,7 +20,7 @@ export default { } }, methods: { - ...mapActions(['injectJWeixin']), + ...mapActions(['injectJWeixin', 'getAccount']), getUsers() { return Promise.all([ // this.$http.post("/app/wxcp/wxuser/list", null, {params: {listType: 0}}).then(res => { @@ -63,7 +63,7 @@ export default { }, created() { this.injectJWeixin("openEnterpriseChat").then(() => this.$confirm(`确定创建${this.$route.query.groupName}?`)) - .then(this.getUsers).then(this.handleCreateSuccess).catch(() => 0) + .then(this.getAccount).then(this.getUsers).then(this.handleCreateSuccess).catch(() => 0) } }