Redirect to `/' if user is authenticated

This commit is contained in:
Robert Schäfer 2019-06-19 13:40:08 +02:00
parent 217c905800
commit a7eced5f8e

View File

@ -13,5 +13,10 @@
<script>
export default {
layout: 'default',
asyncData({ store, redirect }) {
if (store.getters['auth/isLoggedIn']) {
redirect('/')
}
},
}
</script>