...
|
...
|
@@ -47,7 +47,7 @@ exports.showStorage = (leftNumber) => { |
|
|
leftNumber = typeof num1 === 'number' ? leftNumber : parseFloat(leftNumber, 10);
|
|
|
|
|
|
if (leftNumber <= 3 && leftNumber >= 0) {
|
|
|
return '仅剩' + leftNumber + '件';
|
|
|
return `仅剩${leftNumber}件`;
|
|
|
} else if (leftNumber < 0) {
|
|
|
return '库存不足';
|
|
|
}
|
...
|
...
|
|