|
@@ -10,7 +10,11 @@ const mutations = {};
|
|
|
|
|
|
const actions = {
|
|
const actions = {
|
|
async query({ commit }, { skip = 0, limit = undefined, ...info } = {}) {
|
|
async query({ commit }, { skip = 0, limit = undefined, ...info } = {}) {
|
|
- const res = await this.$axios.$get(api.expertsuserInfo, { skip, limit, ...info });
|
|
|
|
|
|
+ const res = await this.$axios.$get(api.expertsuserInfo, {
|
|
|
|
+ skip,
|
|
|
|
+ limit,
|
|
|
|
+ ...info,
|
|
|
|
+ });
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
async create({ commit }, payload) {
|
|
async create({ commit }, payload) {
|
|
@@ -31,6 +35,12 @@ const actions = {
|
|
const res = await this.$axios.$delete(`${api.expertsuserInfo}/${payload}`);
|
|
const res = await this.$axios.$delete(`${api.expertsuserInfo}/${payload}`);
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
|
|
+ async upgrade({ commit }, { id, ...info } = {}) {
|
|
|
|
+ const res = await this.$axios.$post(`${api.expertsuserInfo}/upgrade/${id}`, {
|
|
|
|
+ ...info,
|
|
|
|
+ });
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
};
|
|
};
|
|
|
|
|
|
export default {
|
|
export default {
|