@@ -22,10 +22,7 @@ const actions = {
return res;
},
async update({ commit }, { dock_id, id, ...data }) {
- const res = await this.$axios.$post(
- `${api.applyInfo}/${dock_id}/check/${id}`,
- data
- );
+ const res = await this.$axios.$post(`${api.applyInfo}/${dock_id}/check/${id}`, data);
async delete({ commit }, payload) {
@@ -25,8 +25,8 @@ const actions = {
const res = await this.$axios.$get(`${api.userInfo}/${payload}`);
- async update({ commit }, { id, ...data }) {
- const res = await this.$axios.$post(`${api.userInfo}`, data);
+ async update({ commit }, payload) {
+ const res = await this.$axios.$post(`${api.userInfo}`, payload);