更改order_food/order_food路径前
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user