|
|
@ -9,6 +9,13 @@ export function addTj(valueArr, unitArr) { |
|
|
mixIndex = thisIndex < mixIndex ? thisIndex : mixIndex |
|
|
mixIndex = thisIndex < mixIndex ? thisIndex : mixIndex |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (mixIndex === -1) { |
|
|
|
|
|
return { |
|
|
|
|
|
total: 0, |
|
|
|
|
|
unit: 'mL' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let total = 0 |
|
|
let total = 0 |
|
|
for (let i = 0; i < unitArr.length; i++) { |
|
|
for (let i = 0; i < unitArr.length; i++) { |
|
|
let thisIndex = unit.indexOf(unitArr[i]) |
|
|
let thisIndex = unit.indexOf(unitArr[i]) |
|
|
|