boussole-pluss/frontend/pages/redirect.vue

21 lines
330 B
Vue
Raw Normal View History

2022-10-07 14:15:53 +00:00
<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>