|
@@ -239,16 +239,16 @@ export default {
|
|
|
const element = list[index];
|
|
const element = list[index];
|
|
|
if (element.id == item.id && element.classId == item.classId) {
|
|
if (element.id == item.id && element.classId == item.classId) {
|
|
|
has = true;
|
|
has = true;
|
|
|
- // if (this.isLimit) {
|
|
|
|
|
- // if (element.bigCount < item.bigNum) {
|
|
|
|
|
- // list[index] = { ...element, bigCount: ++element.bigCount };
|
|
|
|
|
- // }
|
|
|
|
|
- // else if (element.smallCount < item.smallNum) {
|
|
|
|
|
- // list[index] = { ...element, smallCount: ++element.smallCount };
|
|
|
|
|
- // }
|
|
|
|
|
- // } else {
|
|
|
|
|
- list[index] = { ...element, bigCount: ++element.bigCount };
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (this.isLimit) {
|
|
|
|
|
+ if (element.bigCount < item.bigNum) {
|
|
|
|
|
+ list[index] = { ...element, bigCount: ++element.bigCount };
|
|
|
|
|
+ }
|
|
|
|
|
+ // else if (element.smallCount < item.smallNum) {
|
|
|
|
|
+ // list[index] = { ...element, smallCount: ++element.smallCount };
|
|
|
|
|
+ // }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ list[index] = { ...element, bigCount: ++element.bigCount };
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (this.isLimit) {
|
|
if (this.isLimit) {
|
|
|
const { bigCount, smallCount } = list[index];
|
|
const { bigCount, smallCount } = list[index];
|