lrf402788946 před 4 roky
rodič
revize
56cc2801b5
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/views/superAdminCenter/business/index.vue

+ 2 - 2
src/views/superAdminCenter/business/index.vue

@@ -69,9 +69,9 @@ export default {
   },
   methods: {
     ...users(['query', 'fetch', 'create', 'update', 'delete']),
-    ...authUser({ authUserDelete: 'delete' }),
+    ...authUser({ authUserDelete: 'delete', getBusinessUser: 'getBusinessUser' }),
     async search({ skip = 0, limit = 10, ...info } = {}) {
-      const res = await this.query({ skip, limit, pid: this.user.uid, ...info });
+      const res = await this.getBusinessUser({ skip, limit, pid: this.user.uid, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);