Showing
1 changed file
with
7 additions
and
2 deletions
| ... | ... | @@ -272,10 +272,15 @@ |
| 272 | 272 | |
| 273 | 273 | const validateHasData = (record: Recordable) => { |
| 274 | 274 | notFoundData.value = true; |
| 275 | - const { val = [], attr } = (record as unknown as ResponsData) || {}; | |
| 276 | - if (!attr || !val.length) { | |
| 275 | + if (Object.keys(record).length === 0) { | |
| 276 | + notFoundData.value = true; | |
| 277 | + } else { | |
| 277 | 278 | notFoundData.value = false; |
| 278 | 279 | } |
| 280 | + // const { val = [], attr } = (record as unknown as ResponsData) || {}; | |
| 281 | + // if (!attr || !val.length) { | |
| 282 | + // notFoundData.value = false; | |
| 283 | + // } | |
| 279 | 284 | }; |
| 280 | 285 | |
| 281 | 286 | const handleChangeChars = (value: string, device: string) => { | ... | ... |