Skip to content

Instantly share code, notes, and snippets.

@Serhansolo
Created April 27, 2020 11:40
Show Gist options
  • Save Serhansolo/1365d258cdbfd7aeaa11c8e720b04e60 to your computer and use it in GitHub Desktop.
Save Serhansolo/1365d258cdbfd7aeaa11c8e720b04e60 to your computer and use it in GitHub Desktop.
<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