Created
April 27, 2020 11:40
-
-
Save Serhansolo/1365d258cdbfd7aeaa11c8e720b04e60 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 id="app"> | |
<navbar /> | |
<section v-if="isUserAuth" class="section"> | |
<div class="columns"> | |
<div class="column is-half is-offset-one-quarter"> | |
Welcome {{ getUser.email }} | |
</div> | |
</div> | |
</section> | |
<section class="section"> | |
<div class="container is-desktop"> | |
<router-view /> | |
</div> | |
</section> | |
</div> | |
</template> | |
<script> | |
import Navbar from "./components/Navbar"; | |
import { mapGetters, mapActions } from "vuex"; | |
export default { | |
components: { Navbar }, | |
data() { | |
return { | |
kaas: true | |
}; | |
}, | |
mounted() { | |
this.authAction(); | |
}, | |
computed: { | |
...mapGetters(["getUser", "isUserAuth"]) | |
}, | |
methods: { | |
...mapActions(["authAction"]) | |
} | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment