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