chore: bump eslint deps (#4722)

This commit is contained in:
neverland
2019-10-14 21:01:32 +08:00
committed by GitHub
parent 8ad1b13e18
commit 6e152f3b7a
6 changed files with 260 additions and 162 deletions
+3 -2
View File
@@ -81,9 +81,10 @@ export const isSkuChoosable = (skuList, selectedSku, skuToChoose) => {
const { key, valueId } = skuToChoose;
// 先假设sku已选中,拼入已选中sku对象中
const matchedSku = Object.assign({}, selectedSku, {
const matchedSku = {
...selectedSku,
[key]: valueId
});
};
// 再判断剩余sku是否全部不可选,若不可选则当前sku不可选中
const skusToCheck = Object.keys(matchedSku).filter(