fix a bug

This commit is contained in:
龚祖望 2022-11-30 19:51:24 +08:00
parent 0602e01bf7
commit d6faaaa2a7
1 changed files with 2 additions and 1 deletions

View File

@ -1100,7 +1100,7 @@ export default {
] ]
} }
], ],
metersId: this.$route.query.metersId, metersId: Number(this.$route.query.metersId),
charttable: null, charttable: null,
dataGroup: [], dataGroup: [],
mapofChart: new Map(), mapofChart: new Map(),
@ -1224,6 +1224,7 @@ export default {
const flag = 0 const flag = 0
const data = msg.data const data = msg.data
// //
console.log('data', JSON.parse(data))
if (data !== '') { if (data !== '') {
const data1 = JSON.parse(data) const data1 = JSON.parse(data)
const tmpNode = this.mapOfNode.get(data1.paramsName) const tmpNode = this.mapOfNode.get(data1.paramsName)