adding latest

This commit is contained in:
2020-03-16 02:41:30 +00:00
parent 3334659bec
commit adb8b606ab
2 changed files with 70 additions and 0 deletions

28
src/views/Home.vue Normal file
View File

@@ -0,0 +1,28 @@
<template>
<div>
<h1>Hello {{ this.currentUser }}</h1>
</div>
</template>
<script>
import { mapGetters } from "vuex";
export default {
async mounted() {
await this.$store.dispatch("fetchUser");
},
computed: {
...mapGetters({ currentUser: "userEmail" })
},
methods: {
getUser() {
try {
return this.$store.getters.userEmail;
} catch (TypeError) {
// pass}
}
}
}
};
</script>
<style lang="scss" scoped></style>