fix #262 part of user profiles not being able to load previous posts
This commit is contained in:
parent
1fb9ceb59b
commit
0b8f616af1
2 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ const UserProfile = {
|
|||
return this.$route.params.id || this.user.id
|
||||
},
|
||||
userName () {
|
||||
return this.$route.params.name
|
||||
return this.$route.params.name || this.user.screen_name
|
||||
},
|
||||
friends () {
|
||||
return this.user.friends
|
||||
|
@ -68,7 +68,7 @@ const UserProfile = {
|
|||
}
|
||||
this.$store.dispatch('stopFetching', 'user')
|
||||
this.$store.commit('clearTimeline', { timeline: 'user' })
|
||||
this.$store.dispatch('startFetching', ['user', this.userName])
|
||||
this.$store.dispatch('startFetching', ['user', this.fetchBy])
|
||||
},
|
||||
userId () {
|
||||
if (!this.isExternal) {
|
||||
|
@ -76,7 +76,7 @@ const UserProfile = {
|
|||
}
|
||||
this.$store.dispatch('stopFetching', 'user')
|
||||
this.$store.commit('clearTimeline', { timeline: 'user' })
|
||||
this.$store.dispatch('startFetching', ['user', this.userId])
|
||||
this.$store.dispatch('startFetching', ['user', this.fetchBy])
|
||||
},
|
||||
user () {
|
||||
if (this.user.id && !this.user.followers) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue