修改mqtt连接方式
This commit is contained in:
@@ -86,7 +86,7 @@ const zblist = ref<any[]>([])
|
||||
const init = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
queryByCode('Harmonic_Type').then(res => {
|
||||
queryCsDictTree(res.data.id).then(res => {
|
||||
queryCsDictTree(res.data?.id).then(res => {
|
||||
zblist.value = res.data.map((item: any) => {
|
||||
return {
|
||||
value: item.id,
|
||||
@@ -302,11 +302,11 @@ const search = () => {
|
||||
} else {
|
||||
echartsData.value = null
|
||||
}
|
||||
|
||||
})
|
||||
setTimeout(() => {
|
||||
loading.value = false
|
||||
}, 0)
|
||||
}).catch(() => {
|
||||
loading.value = false
|
||||
})
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user