refactor:handle sub branch

This commit is contained in:
Thanaphon Frappet 2024-12-11 12:06:04 +07:00
parent e95078e75e
commit ca7713c88e
3 changed files with 30 additions and 134 deletions

View file

@ -38,6 +38,7 @@ const useBranchStore = defineStore('api-branch', () => {
filter?: 'head' | 'sub';
withHead?: boolean;
activeOnly?: boolean;
headOfficeId?: string;
},
Data extends Pagination<Branch[]>,
>(opts?: Options): Promise<Data | false> {