refactor: activeOnly
This commit is contained in:
parent
0090190bcd
commit
eaa92f214d
2 changed files with 2 additions and 1 deletions
|
|
@ -42,8 +42,8 @@ const { getOptions, setFirstValue, getSelectedOption, filter } =
|
|||
getList: async (query) => {
|
||||
const ret = await getList({
|
||||
query,
|
||||
includeCustomer: true,
|
||||
...props.params,
|
||||
activeOnly: true,
|
||||
});
|
||||
if (ret) return ret.result;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ const useBranchStore = defineStore('api-branch', () => {
|
|||
tree?: boolean;
|
||||
filter?: 'head' | 'sub';
|
||||
withHead?: boolean;
|
||||
activeOnly?: boolean;
|
||||
},
|
||||
Data extends Pagination<Branch[]>,
|
||||
>(opts?: Options): Promise<Data | false> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue