index.vue
555 Bytes
<template>
</template>
<script type='text/ecmascript-6'>
import { wxConfig } from '@/api'
export default {
name: '',
data () {
return {
flag: false
}
},
activated () {
},
mounted () {
this.showLoading()
let { userId } = this.getQuery()
wxConfig.init(['openEnterpriseChat']).then(() => {
this.hideLoading()
wxConfig.openEnterpriseChat({
externalUserIds: [userId]
}).then(res => {
console.log(res)
})
})
},
methods: {
}
}
</script>
<style scoped lang='scss'>
</style>