help.js 415 B

1234567891011121314
  1. import axios from '~plugins/axios'
  2. export const actions = {
  3. // 获取帮助中心信息
  4. loadHelpSnapsho ({ commit }, params = {}) {
  5. commit('help/option/REQUEST_SNAPSHO')
  6. return axios.get('api/help-service/helps', {params})
  7. .then(response => {
  8. commit('help/option/GET_SNAPSHO_SUCCESS', response.data)
  9. }, err => {
  10. commit('help/option/GET_SNAPSHO_FAILURE', err)
  11. })
  12. }
  13. }