<template>
  <div class="home">
    <p>你好，{{ userInfo.name || userInfo.account }}</p>
  </div>
</template>

<script>
import { mapState } from 'vuex'

export default {
  name: 'Home',
  computed: {
    ...mapState('user', ['userInfo'])
  }
}
</script>

<style lang="scss" scoped>
.home{
  min-height: calc(100vh - 140px);
  padding-top: 50px;
  background-color: #ffffff;
  text-align: center;
  p{
    padding: 50px;
    font-size: 32px;
  }
}
</style>
