修复示例页面mqtt连接bug
parent
4cd115ca62
commit
1e16d4abce
|
|
@ -82,7 +82,7 @@ export default {
|
|||
lastRaw: ''
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onShow() {
|
||||
const clientId = 'uniapp_' + Date.now() + '_' + Math.floor(Math.random() * 100000)
|
||||
|
||||
client = mqtt.connect('ws://1.94.254.176:9001', {
|
||||
|
|
|
|||
Loading…
Reference in New Issue