|
|
@@ -384,7 +384,7 @@ function getSubGoodsList(goodsList, matchArtIdList, num) {
|
|
|
if (matchArtIdList.includes(item.artHashId)) {
|
|
|
let neddNum = num - retList.length;
|
|
|
let diffNum = item.verList.length - neddNum;
|
|
|
- if (diffNum > 0) {
|
|
|
+ if (diffNum >= 0) {
|
|
|
let tmpLst = item.verList.splice(item.verList.length - num, neddNum);
|
|
|
// retList = retList.concat(tmpLst);
|
|
|
for (let j = 0; j < tmpLst.length; j++) {
|