...
|
...
|
@@ -44,7 +44,10 @@ export default { |
|
|
};
|
|
|
},
|
|
|
async getSelectedTradeProduct({state, commit, dispatch}, {productId, sizeId, tradeTypeId}) {
|
|
|
if (!(state.selectedProductInfo && state.selectedProductInfo.productId === productId ||
|
|
|
productId = parseInt(productId, 10);
|
|
|
sizeId = parseInt(sizeId, 10);
|
|
|
tradeTypeId = parseInt(tradeTypeId, 10);
|
|
|
if (!(state.selectedProductInfo && state.selectedProductInfo.productId == productId ||
|
|
|
state.products.byId[productId])) {
|
|
|
await dispatch('fetchProductInfo', {productId});
|
|
|
}
|
...
|
...
|
|