akkoma-fe/src/components/user_profile/user_profile.js

18 lines
353 B
JavaScript
Raw Normal View History

2016-11-30 22:32:22 +00:00
import UserCardContent from '../user_card_content/user_card_content.vue'
import { find } from 'lodash'
const UserProfile = {
computed: {
user () {
const id = this.$route.params.id
const user = find(this.$store.state.users.users, {id})
return user
}
},
components: {
UserCardContent
}
}
export default UserProfile