fix: 修改代客下单列表商品列表接口
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user