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) => {
const ret = await getList({
query,
includeCustomer: true,
...props.params,
activeOnly: true,
});
if (ret) return ret.result;
},

View file

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