blob: 4f35cf270cb4a65669efad9aa8cb8a525aa8efa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import UserCardContent from '../user_card_content/user_card_content.vue'
const UserProfile = {
created () {
this.$store.dispatch('startFetching', ['user', this.userId])
},
destroyed () {
this.$store.dispatch('stopFetching', ['user', this.userId])
},
computed: {
userId () {
return this.$route.params.id
},
user () {
return this.$store.state.users.usersObject[this.userId]
}
},
components: {
UserCardContent
}
}
export default UserProfile
|