All files / pages logout.vue

0% Statements 0/3
0% Branches 0/4
0% Functions 0/1
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33                                                                 
<template lang="pug">
.container
  OverlayLoadingLogo(animation="loop")
  h1 À plus!
  p Déconnexion en cours...
</template>
 
<script>
import OverlayLoadingLogo from '~/components/legacy/OverlayLoadingLogo.vue'
export default {
  layout: 'bare',
  components: { OverlayLoadingLogo },
  async mounted() {
    // Clear vuex data
    await this.$store.dispatch('clearAllData')
    // Logout
    this.$auth.logout()
  },
}
</script>
 
<style lang="stylus" scoped>
.container
  display flex
  flex-direction column
  justify-content center
  align-items center
 
  p
    margin-top 10px
    opacity 0.25
</style>