|
@@ -4,6 +4,7 @@ import _ from 'lodash';
|
|
|
Vue.use(Vuex);
|
|
|
const api = {
|
|
|
interface: `/api/train/talented`,
|
|
|
+ export: `/api/train/talented/export`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -29,6 +30,10 @@ const actions = {
|
|
|
const res = await this.$axios.$delete(`${api.interface}/${payload}`);
|
|
|
return res;
|
|
|
},
|
|
|
+ async export({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$get(`${api.export}`, payload);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
};
|
|
|
export default {
|
|
|
namespaced: true,
|