export default { name: 'AppLogout', methods: { async handleSubmit() { try { await this.submitApi() showSuccessInfo("Logout success") // fetch devices this.$emit('reload-devices') } catch (err) { showErrorInfo(err) } }, async submitApi() { try { await http.get(`app/logout`) } catch (error) { if (error.response) { throw Error(error.response.data.message) } throw Error(error.message) } } }, template: `
Logout
Remove your login session in application
` }