<template>
  <el-card class="content-z">
    <div class="dashboard-text">name: {{ user.nickName }}</div>
    <el-button v-permission="['system:user:resetPwd']">默认按钮</el-button>
  </el-card>
</template>

<script>
import { mapGetters } from 'vuex'

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

<style lang="scss" scoped>
  .dashboard {
    &-container {
      margin: 30px;
    }

    &-text {
      font-size: 30px;
      line-height: 46px;
    }
  }
</style>
