import Vue from 'vue'; import Vuex from 'vuex'; import _ from 'lodash'; Vue.use(Vuex); const api = { khselectInfo: `/api/jh/v1/kh/excel`, }; const state = () => ({}); const mutations = {}; const actions = { async khselectQuery({ commit }, payload) { const res = await this.$axios.$post(`${api.khselectInfo}`, payload); return res; }, }; export default { namespaced: true, state, mutations, actions, };