レインせんぱいにサンキュー
This commit is contained in:
parent
ce8b5fcd11
commit
27cbe3ca65
4 changed files with 8 additions and 32 deletions
|
@ -100,9 +100,10 @@ const UserProfile = {
|
|||
if (this.userId && !this.$route.params.name) {
|
||||
fetchPromise = this.$store.dispatch('fetchUser', this.userId)
|
||||
} else {
|
||||
fetchPromise = this.$store.dispatch('fetchUserByScreenName', this.userName)
|
||||
.then(userId => {
|
||||
this.fetchedUserId = userId
|
||||
fetchPromise = this.$store.dispatch('fetchUser', this.userName)
|
||||
.then(({ id }) => {
|
||||
console.log(arguments)
|
||||
this.fetchedUserId = id
|
||||
})
|
||||
}
|
||||
return fetchPromise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue