<script>
export default {
  name: "logout",

  mounted() {
    this.$store.dispatch("logout").then(() => {
      this.$router.push({
        name: "login",
      });
    });
  },
};
</script>