Skip to content

Instantly share code, notes, and snippets.

@Serhansolo
Last active April 13, 2020 10:22
Show Gist options
  • Save Serhansolo/a4515fbbbf525180fe79de28185fc0cd to your computer and use it in GitHub Desktop.
Save Serhansolo/a4515fbbbf525180fe79de28185fc0cd 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 } from "vuex";
export default {
components: { Navbar },
data() {
return {
kaas: true
};
},
computed: {
...mapGetters(["getUser", "isUserAuth"])
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment