更改order_food/order_food路径前

This commit is contained in:
wwz
2025-03-24 17:09:06 +08:00
parent 94b513820f
commit 429336c736
7 changed files with 74 additions and 35 deletions

View File

@@ -903,7 +903,14 @@
// 单规格
const singleclick = async (item, i) => {
// 判断购物车是否有该选中商品
let res = await matchingProduct(item)
let res = null
try {
res = matchedProducts.value.find((product, index) => {
return product.skuId == item.skuId && product.id == item.id
});
} catch (error) {
//TODO handle the exception
}
websocketsendMessage({
id: res ? item.cartListId : '',
type: 'shopping',