设备详情修改

This commit is contained in:
仲么了
2023-11-08 10:50:53 +08:00
parent 69f28285c2
commit a0dd460f53
2 changed files with 6 additions and 4 deletions

View File

@@ -425,10 +425,9 @@ export default {
// }
// })
this.IOData = JSON.parse(message.toString())
this.IOData = this.IOData.filter((item) => item.value !== 0)
this.IOData.forEach((item) => {
if (item.value === 0) {
item.value = '0'
} else if (!item.value) {
if (!item.value) {
item.value = ''
}
})