%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/store/therapist/
Upload File :
Create Path :
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/store/therapist/bookings.js

export const state = () => ({
  list: [],
  meta: [],
})

export const mutations = {
  setList(state, data) {
    state.list = data
  },
  setMeta(state, meta) {
    state.meta = meta
  },
}

export const actions = {
  async get({ commit, error }, payload) {
    await this.$axios.get('/therapist/bookings', {
      params: payload,
    }).then((res) => {
      if (res.status === 200) {
        commit('setList', res.data.data)
        commit('setMeta', res.data.meta)
      }
    })
  },
}

Zerion Mini Shell 1.0