|
@@ -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);
|