lrf402788946 4 éve
szülő
commit
e79c3b8c65
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      src/store/user/auth-user.js

+ 5 - 0
src/store/user/auth-user.js

@@ -6,6 +6,7 @@ Vue.use(Vuex);
 const api = {
   interface: `/api/auth/user`,
   getMenu: `/api/auth/user/menus`,
+  getBusinessUser: `/api/auth/businessuser`, //pid,skip,limit
 };
 const state = () => ({});
 const mutations = {};
@@ -34,6 +35,10 @@ const actions = {
     const res = await this.$axios.$delete(`${api.interface}/${payload}`);
     return res;
   },
+  async getBusinessUser({ commit }, { skip = 0, limit = 10, ...info } = {}) {
+    const res = await this.$axios.$get(api.getBusinessUser, { skip, limit, ...info });
+    return res;
+  },
 };
 
 export default {