优化订单结算不去结算购物车
This commit is contained in:
@@ -265,7 +265,7 @@ function show(t) {
|
||||
goodsStore.payType = props.type
|
||||
dialogVisible.value = true;
|
||||
cartInfo.value = { ...goodsStore.cartInfo }
|
||||
if (props.type === 'table') {
|
||||
if (props.type === 'table' || props.type === 'order') {
|
||||
orderList.value = goodsStore.orderList.map(item => item.goods).flat()
|
||||
} else {
|
||||
orderList.value = [...goodsStore.cartList, ...goodsStore.orderList.map(item => item.goods).flat()]
|
||||
|
||||
Reference in New Issue
Block a user