<template>
  <el-scrollbar class="dashboard-container">
    <component :is="currentRole" />
  </el-scrollbar>
</template>

<script>
import adminDashboard from './admin'
import beautyDashboard from './beauty'

export default {
  name: 'Dashboard',
  components: { adminDashboard, beautyDashboard },
  data() {
    return {
      currentRole: 'beautyDashboard' // 默认显示美业Dashboard
    }
  }
}
</script>
<style lang="scss" scoped>
.dashboard-container {
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  >>> .el-scrollbar__wrap {
    margin-bottom: 0 !important;
    overflow-x: auto;
  }
  >>> .el-scrollbar__bar.is-horizontal > div {
    display: none;
  }
}
</style>