%PDF- %PDF-
Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/store/therapist/ |
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/store/therapist/money.js |
export const state = () => ({ statistics: {}, payments: [], }) export const mutations = { setStatistics(state, data) { state.statistics = data }, setPayments(state, data) { state.payments = data } } export const actions = { async getStatistics({ commit, error }, payload) { await this.$axios.get('/therapist/money') .then((res) => { if (res.status === 200) { commit('setStatistics', res.data) } }) }, async getPayments({ commit, error }, payload) { await this.$axios.get('/therapist/money/payments') .then((res) => { if (res.status === 200) { commit('setPayments', res.data) } }) }, }