Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Logout.vue
<template><div></div></template> | <template><div></div></template> | ||||
<script> | <script> | ||||
export default { | export default { | ||||
mounted () { | mounted () { | ||||
axios.post('/api/auth/logout') | axios.post('/api/auth/logout') | ||||
.then(response => { | .then(response => { | ||||
this.$toastr('success', response.data.message) | this.$toast.success(response.data.message) | ||||
}) | }) | ||||
this.$root.logoutUser() | this.$root.logoutUser() | ||||
} | } | ||||
} | } | ||||
</script> | </script> |