|
@@ -29,6 +29,10 @@ const actions = {
|
|
|
const res = await this.$axios.$post(`${api.test}/${id}`, { ...info });
|
|
|
return res;
|
|
|
},
|
|
|
+ async close({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$post(`${api.test}/close/${payload}`);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async delete({ commit }, payload) {
|
|
|
const res = await this.$axios.$delete(`${api.test}/${payload}`);
|
|
|
return res;
|