fix: 修改代客下单列表商品列表接口

This commit is contained in:
2025-03-27 10:56:36 +08:00
parent 776a416019
commit 0b5737116e
3 changed files with 9 additions and 3 deletions

View File

@@ -45,13 +45,13 @@ export const useCartsStore = defineStore("carts", () => {
//代客下单页面商品缓存
const goods = useStorage<any[]>("Instead_goods", []);
async function getGoods(query: any) {
const res = await productApi.getPage({
const res = await productApi.list({
page: 1,
size: 999,
status: "on_sale",
...query,
});
goods.value = res.records.filter((v: { type: string }) => v.type != 'coupon');
goods.value = res.filter((v: { type: string }) => v.type != 'coupon');
setGoodsMap(goods.value)
}