<template>
  <div>
    Redirect
  </div>
</template>

<script lang="ts">
import {Component, Vue} from "nuxt-property-decorator";

@Component
export default class Redirect extends Vue {
  created(){
    if (this.$auth.user) {
      this.$router.push(`/dashboard`);
    } else {
      window.location.reload()
    }
  }
}
</script>
