Authored by zhangwenxue

fix(商品详情): 转换对外action的参数做类型

... ... @@ -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});
}
... ...