export default { name: 'AppReconnect', methods: { async handleSubmit() { try { await this.submitApi() showSuccessInfo("Reconnect success") // fetch devices this.$emit('reload-devices') } catch (err) { showErrorInfo(err) } }, async submitApi() { try { await window.http.get(`/app/reconnect`) } catch (error) { if (error.response) { throw Error(error.response.data.message) } throw Error(error.message) } } }, template: `
App
Reconnect
Please reconnect to the WhatsApp service if your API doesn't work or if your app is down.
` }