强制登录

This commit is contained in:
2022-11-22 19:16:02 +08:00
parent 7c490b9c5a
commit 1966f9d7c7

View File

@@ -20,7 +20,7 @@ export default {
} }
}, },
methods: { methods: {
...mapActions(['injectJWeixin']), ...mapActions(['injectJWeixin', 'getAccount']),
getUsers() { getUsers() {
return Promise.all([ return Promise.all([
// this.$http.post("/app/wxcp/wxuser/list", null, {params: {listType: 0}}).then(res => { // this.$http.post("/app/wxcp/wxuser/list", null, {params: {listType: 0}}).then(res => {
@@ -63,7 +63,7 @@ export default {
}, },
created() { created() {
this.injectJWeixin("openEnterpriseChat").then(() => this.$confirm(`确定创建${this.$route.query.groupName}?`)) 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)
} }
} }
</script> </script>