refactor initial data loading in dashboard

This commit is contained in:
yogesh_gohil
2019-12-09 19:27:21 +05:30
parent 7bba576dca
commit 9424dc6c27
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,5 @@
import * as types from './mutation-types'
import Ls from '@/services/ls'
export const setSelectedCompany = ({ commit, dispatch, state }, data) => {
Ls.set('selectedCompany', data.id)
commit(types.SET_SELECTED_COMPANY, data)
}