%PDF- %PDF-
Mini Shell

Mini Shell

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

export const state = () => ({
  total: 0,
})

export const mutations = {
  setTotalProgress(state, data) {
    state.total = data
  }
}

export const actions = {
  async get({ commit, error }, payload) {
    await this.$axios.get('/account/progress', {
      params: payload
    })
    .then((res) => {
      if (res.status === 200) {
        commit('setTotalProgress', res.data)
      }
    })
  },
}

Zerion Mini Shell 1.0