CN-64 feat: 搜索框联动,其他一些细节调整

This commit is contained in:
chenjinsong
2021-08-13 09:39:02 +08:00
parent 6eb33efa7a
commit c1bcc9394d
16 changed files with 340 additions and 171 deletions

View File

@@ -75,7 +75,7 @@ export default function unitConvert (value, unitType, sourceUnit, targetUnit, do
return ['-', '']
}
}
if (!Number(value) && Number(value) !== 0) {
if (!value && value !== 0) {
return ['-', '']
} else {
switch (unitType) {