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) => {
|
getList: async (query) => {
|
||||||
const ret = await getList({
|
const ret = await getList({
|
||||||
query,
|
query,
|
||||||
includeCustomer: true,
|
|
||||||
...props.params,
|
...props.params,
|
||||||
|
activeOnly: true,
|
||||||
});
|
});
|
||||||
if (ret) return ret.result;
|
if (ret) return ret.result;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ const useBranchStore = defineStore('api-branch', () => {
|
||||||
tree?: boolean;
|
tree?: boolean;
|
||||||
filter?: 'head' | 'sub';
|
filter?: 'head' | 'sub';
|
||||||
withHead?: boolean;
|
withHead?: boolean;
|
||||||
|
activeOnly?: boolean;
|
||||||
},
|
},
|
||||||
Data extends Pagination<Branch[]>,
|
Data extends Pagination<Branch[]>,
|
||||||
>(opts?: Options): Promise<Data | false> {
|
>(opts?: Options): Promise<Data | false> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue