From 7a21247fd3d8062e749440d8a609c0edc12ac16f Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:07:51 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20opts=20=20?= =?UTF-8?q?=E0=B8=A3=E0=B8=B1=E0=B8=9A=20productTypeId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/product-service/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; }