add api service function
This commit is contained in:
parent
2cda9010df
commit
cea6ea42f0
4 changed files with 30 additions and 7 deletions
|
@ -24,8 +24,9 @@ const reports = {
|
|||
closeUserReportingModal ({ commit }) {
|
||||
commit('closeUserReportingModal')
|
||||
},
|
||||
reportUser ({ commit }, payload) {
|
||||
console.log('payload', payload)
|
||||
reportUser ({ state, rootState, commit }, params) {
|
||||
rootState.api.backendInteractor.reportUser({ userId: state.userId, ...params })
|
||||
.then(result => console.log(result))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue