feat: adjust product count on select worker
This commit is contained in:
parent
4c65515ba7
commit
7e9a033a47
1 changed files with 2 additions and 0 deletions
|
|
@ -196,9 +196,11 @@ function handleCheck(
|
|||
) {
|
||||
const target = data.workerIndex.indexOf(index);
|
||||
if (target > -1) {
|
||||
data.amount -= 1;
|
||||
data.workerIndex.splice(target, 1);
|
||||
} else {
|
||||
data.workerIndex.push(index);
|
||||
data.amount += 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue