build version 400

This commit is contained in:
Mohit Panjwani
2020-12-02 17:54:08 +05:30
parent 326508e567
commit 89ee58590c
963 changed files with 62887 additions and 48868 deletions

View File

@ -1,21 +1,23 @@
import * as types from './mutation-types'
export const loadData = ({ commit, dispatch, state }, params) => {
return new Promise((resolve, reject) => {
window.axios.get(`/api/dashboard`, { params }).then((response) => {
commit(types.SET_INITIAL_DATA, response.data)
commit(types.GET_INITIAL_DATA, true)
resolve(response)
}).catch((err) => {
reject(err)
})
window.axios
.get(`/api/v1/dashboard`, { params })
.then((response) => {
commit(types.SET_INITIAL_DATA, response.data)
commit(types.SET_DASHBOARD_DATA_LOADED_STATE, true)
resolve(response)
})
.catch((err) => {
reject(err)
})
})
}
// export const getChart = ({ commit, dispatch, state }) => {
// return new Promise((resolve, reject) => {
// window.axios.get(`/api/dashboard/expense/chart`).then((response) => {
// window.axios.get(`/api/v1/dashboard/expense/chart`).then((response) => {
// commit(types.SET_INITIAL_DATA, response.data)
// resolve(response)
// }).catch((err) => {