fix: แก้ opts รับ productTypeId
This commit is contained in:
parent
2f6f9d7f95
commit
7a21247fd3
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue