lrf402788946 4 lat temu
rodzic
commit
56cc2801b5
1 zmienionych plików z 2 dodań i 2 usunięć
  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);