修复示例页面mqtt连接bug

master
lld 2025-12-26 01:41:13 +08:00
parent 4cd115ca62
commit 1e16d4abce
1 changed files with 1 additions and 1 deletions

View File

@ -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', {