Commit 19af98bbde88add9bb5542c6e972ec02876958e2
Merge branch 'fix/device-code-nan' into 'main_dev'
fix: 修复设备地址码为空时回显NaN See merge request yunteng/thingskit-front!805
Showing
1 changed file
with
3 additions
and
1 deletions
@@ -41,7 +41,9 @@ | @@ -41,7 +41,9 @@ | ||
41 | const inputType = ref(props.type); | 41 | const inputType = ref(props.type); |
42 | 42 | ||
43 | const getInputValue = computed(() => { | 43 | const getInputValue = computed(() => { |
44 | - const { type, value, toUpperCase } = props; | 44 | + const { type, toUpperCase } = props; |
45 | + let { value } = props; | ||
46 | + if (isNaN(value as number)) value = undefined; | ||
45 | 47 | ||
46 | if (isNullOrUnDef(value)) return value; | 48 | if (isNullOrUnDef(value)) return value; |
47 | 49 |