You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

logOut.vue 347B

12345678910111213141516171819
  1. <script>
  2. import { mapActions } from 'vuex';
  3. export default {
  4. computed: {
  5. isLoggedIn() {
  6. return this.$store.getters.isLoggedIn;
  7. },
  8. },
  9. methods: {
  10. ...mapActions('authentication', ['logout']),
  11. Logout() {
  12. this.logout('logout').then(() => {
  13. this.$router.push('/user/login');
  14. });
  15. },
  16. },
  17. };
  18. </script>