index.vue
406 Bytes
<template>
<div class="main-container">
<div class="main-text">name: {{ name }}</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex';
export default {
name: 'main',
computed: {
...mapGetters([
'name'
])
}
}
</script>
<style lang="scss" scoped>
.main {
&-container {
margin: 30px;
}
&-text {
font-size: 30px;
line-height: 46px;
}
}
</style>