diff --git a/src/stores/product-service/index.ts b/src/stores/product-service/index.ts index 859cdd3d..42945558 100644 --- a/src/stores/product-service/index.ts +++ b/src/stores/product-service/index.ts @@ -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; }