fix: แก้ opts รับ productTypeId

This commit is contained in:
Net 2024-06-18 16:07:51 +07:00
parent 2f6f9d7f95
commit 7a21247fd3

View file

@ -356,7 +356,12 @@ const useProductServiceStore = defineStore('api-product-service', () => {
}
async function fetchListService(
opts?: { query?: string; page?: number; pageSize?: number },
opts?: {
query?: string;
page?: number;
pageSize?: number;
productTypeId?: string;
},
flow?: {
sessionId: string;
refTransactionId: string;
@ -399,7 +404,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
if (!res) return false;
if (res.status === 201) {
if (res.status === 200) {
return res.data;
}