研发图纸文件管理系统-前端项目
chenghx
2018-08-13 fef089a8b5223e40996eb1796fbba9148089b156
src/components/dashboard/WorkPlace.vue
@@ -124,28 +124,23 @@
    PageHeader},
  data () {
    return {
      currUser: {},
      projects: [],
      loading: true,
      activities: [],
      teams: []
    }
  },
  computed: {
    currUser () {
      return this.$store.state.account.user
    }
  },
  mounted () {
    this.currentUser()
    this.getProjectList()
    this.getActivites()
    this.getTeams()
  },
  methods: {
    currentUser () {
      this.$axios({
        method: 'get',
        url: '/user/current'
      }).then(res => {
        this.currUser = res.data
      })
    },
    getProjectList () {
      this.$axios({
        method: 'get',