mirror of
https://github.com/EvolutionAPI/evolution-manager.git
synced 2025-07-13 15:14:49 -06:00
fix: qr code error management
This commit is contained in:
parent
07c1f7255a
commit
a60ad9b279
@ -66,11 +66,12 @@ export default {
|
||||
this.instance.instance.instanceName
|
||||
);
|
||||
|
||||
if (response.base64) this.qrCode = response.base64;
|
||||
else {
|
||||
if (response.qrCode) this.qrCode = response.qrCode;
|
||||
else if (response.instance) {
|
||||
this.dialog = false;
|
||||
return;
|
||||
}
|
||||
} else throw new Error("Não foi possível carregar o QR Code, tente reiniciar o API");
|
||||
|
||||
this.timeout = setTimeout(this.loadQr, 40000);
|
||||
} catch (e) {
|
||||
this.error = e.message?.message || e.message || e;
|
||||
|
Loading…
Reference in New Issue
Block a user