Commit 6b943e58cdaa64573cc68d3d2cffd4688636d5d3

Authored by ww
1 parent 6996c664

fix: 修复设备地址码为空时回显NaN

... ... @@ -41,7 +41,9 @@
41 41 const inputType = ref(props.type);
42 42
43 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 48 if (isNullOrUnDef(value)) return value;
47 49
... ...