<template>
  <div class="dashboard-container">
    <div class="dashboard-text">欢迎您: {{ name }}</div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
	background-color: #304156;
	border-radius: 7px;
  }
  &-text {
    font-size: 18px;
    line-height: 46px;
	padding: 0 10px;
	color: #FFF;
  }
}
</style>
