Authored by zhangwenxue

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

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