refactor: activeOnly

This commit is contained in:
Thanaphon Frappet 2024-12-06 16:28:15 +07:00
parent 0090190bcd
commit eaa92f214d
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}, },

View file

@ -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> {