diff options
| author | taehoon <th.dev91@gmail.com> | 2019-03-20 11:45:19 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-05-03 11:40:05 -0400 |
| commit | cea6ea42f0f882864e01f79a8af08c8bc59272fb (patch) | |
| tree | 7f55f782b353576a896f1226a36c0c1ac06d8927 /src/modules/reports.js | |
| parent | 2cda9010df6192b008515b2138a2e071473bc40b (diff) | |
add api service function
Diffstat (limited to 'src/modules/reports.js')
| -rw-r--r-- | src/modules/reports.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/reports.js b/src/modules/reports.js index b712cfeb..0470b3be 100644 --- a/src/modules/reports.js +++ b/src/modules/reports.js @@ -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)) } } } |
