<template>
  <div>学习统计</div>
</template>

<script>
import { reqMycourseCount } from '@/api/mycourse/index'
export default {
  data () {
    return {
      data: {}
    }
  },
  mounted () {
    this.initData()
  },
  methods: {
    initData () {
      const { person } = this.$store.state.user
      reqMycourseCount({ personId: person.id, projectId: this.$route.query.courseId }).then(res => {
        this.data = res.data
      })
    }
  }
}
</script>

<style>

</style>
