Commit 19af98bbde88add9bb5542c6e972ec02876958e2

Authored by xp.Huang
2 parents 6996c664 6b943e58

Merge branch 'fix/device-code-nan' into 'main_dev'

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

See merge request yunteng/thingskit-front!805
@@ -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