Created
April 10, 2020 16:58
-
-
Save codeofsumit/c6b77628c86cafbca0ac2248f9e742fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="page section"> | |
<div class="hero is-large"> | |
<div class="hero-body"> | |
<center> | |
<h3 class="is-size-4"> | |
<button class="button is-loading is-white"></button> | |
<span>Moment kurz ☕</span> | |
</h3> | |
</center> | |
</div> | |
</div> | |
</div> | |
</template> | |
<script> | |
import { mapActions, mapGetters } from 'vuex'; | |
export default { | |
middleware: 'defaultPortfolio', | |
mounted() { | |
if (!this.$auth.loggedIn) { | |
this.$router.replace('/login'); | |
} else { | |
const id = this.allPortfolios[0]._id; | |
this.$router.replace(`/portfolio/${id}`); | |
} | |
}, | |
computed: { | |
...mapGetters('portfolio', ['allPortfolios']), | |
}, | |
}; | |
</script> | |
<style lang="scss" scoped> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment