Browse Source

chore: ts exhaustiveness checking

main
刘凯 1 year ago
parent
commit
74edd1447e
  1. 4
      src/views/device-manage/device/components/SendCommandModal.vue

4
src/views/device-manage/device/components/SendCommandModal.vue

@ -66,6 +66,10 @@ const CommandAndAttributeSchemas: FormSchema[] = [
{ type: 'number', min: +dataSpecs.min, max: +dataSpecs.max, message: `数值范围为: ${dataSpecs.min}-${dataSpecs.max}` }, { type: 'number', min: +dataSpecs.min, max: +dataSpecs.max, message: `数值范围为: ${dataSpecs.min}-${dataSpecs.max}` },
] ]
break break
default: {
const _exhaustiveCheck: never = dataType
return _exhaustiveCheck
}
} }
schema = { schema = {

Loading…
Cancel
Save