mirror of
https://github.com/EvolutionAPI/evolution-manager.git
synced 2025-07-16 12:12:56 -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
|
this.instance.instance.instanceName
|
||||||
);
|
);
|
||||||
|
|
||||||
if (response.base64) this.qrCode = response.base64;
|
if (response.qrCode) this.qrCode = response.qrCode;
|
||||||
else {
|
else if (response.instance) {
|
||||||
this.dialog = false;
|
this.dialog = false;
|
||||||
return;
|
return;
|
||||||
}
|
} else throw new Error("Não foi possível carregar o QR Code, tente reiniciar o API");
|
||||||
|
|
||||||
this.timeout = setTimeout(this.loadQr, 40000);
|
this.timeout = setTimeout(this.loadQr, 40000);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.error = e.message?.message || e.message || e;
|
this.error = e.message?.message || e.message || e;
|
||||||
|
Loading…
Reference in New Issue
Block a user