Skip to content

Commit

Permalink
fix: corrigido apresentação do QRCode
Browse files Browse the repository at this point in the history
Evita apresentação do qrcode obsoleto para leitura.
  • Loading branch information
ldurans committed Nov 14, 2022
1 parent c8b85a5 commit 64e6067
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions frontend/src/pages/sessaoWhatsapp/ModalQrCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,10 @@ export default {
this.$emit('update:abrirModalQR', false)
},
async fetchSession (channel) {
await RequestNewQrCode(channel.id)
const { data } = await GetWhatSession(channel.id)
this.qrCode = data.qrcode
this.handlerModalQrCode()
if (!this.qrCode) {
// setTimeout(() => {
// if (!this.qrCode) {
// this.$emit('modalQrCode:qrCodeInexistente')
// }
// }, 3000)
await RequestNewQrCode(channel.id)
}
},
handlerModalQrCode () {
socket.on(`${usuario.tenantId}:whatsappSession`, data => {
Expand Down

0 comments on commit 64e6067

Please sign in to comment.