lrf402788946 4 роки тому
батько
коміт
e79c3b8c65
1 змінених файлів з 5 додано та 0 видалено
  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 {