fix: แก้ type ของ ProductGroupเป็น []

This commit is contained in:
Net 2024-06-11 15:02:43 +07:00
parent 5b7e8f7b52
commit 42a4245299

View file

@ -39,7 +39,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
const query = params.toString(); const query = params.toString();
const res = await api.get<ProductGroup>( const res = await api.get<ProductGroup[]>(
`/product-group${(params && '?'.concat(query)) || ''}`, `/product-group${(params && '?'.concat(query)) || ''}`,
{ {
headers: { headers: {