guhongwei преди 5 години
родител
ревизия
fdab7c45e9
променени са 1 файла, в които са добавени 11 реда и са изтрити 1 реда
  1. 11 1
      store/market/exportuser.js

+ 11 - 1
store/market/exportuser.js

@@ -10,7 +10,11 @@ const mutations = {};
 
 const actions = {
   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;
   },
   async create({ commit }, payload) {
@@ -31,6 +35,12 @@ const actions = {
     const res = await this.$axios.$delete(`${api.expertsuserInfo}/${payload}`);
     return res;
   },
+  async upgrade({ commit }, { id, ...info } = {}) {
+    const res = await this.$axios.$post(`${api.expertsuserInfo}/upgrade/${id}`, {
+      ...info,
+    });
+    return res;
+  },
 };
 
 export default {