Add returned user to store after following.
このコミットが含まれているのは:
コミット
2088b3c4dd
|
@ -59,8 +59,9 @@
|
|||
},
|
||||
methods: {
|
||||
followUser () {
|
||||
this.$store.state.api.backendInteractor.followUser(this.user.id)
|
||||
.then((x) => console.log)
|
||||
const store = this.$store
|
||||
store.state.api.backendInteractor.followUser(this.user.id)
|
||||
.then((followedUser) => store.commit('addNewUsers', [followedUser]))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
読み込み中…
新しいイシューから参照