This commit is contained in:
mamengke01
2020-12-18 17:59:32 +08:00
parent d25771f9b0
commit 2a3cb06927
3 changed files with 43 additions and 16 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ function sortItems (goods: Array<ItemInter>, bags: Array<BagInter>, skins: Array
if (!!isCurrency) {
let curname = getCurNameById(goodInfo.good_id);
if (!!curname) {
let index = _.indexOf(showItems, {id: good.id});
let index = _.findIndex(showItems, {id: good.id});
if (index > 0) {
showItems[index].count = showItems[index].count + good.count;
} else {