界面调整

This commit is contained in:
kerwincui
2022-04-22 01:27:20 +08:00
parent d443ebe790
commit 412bc8e5d0
5 changed files with 1917 additions and 2622 deletions

View File

@@ -31,8 +31,6 @@ export default {
},
data() {
return {
// 设备信息
deviceInfo: {},
};
},
created() {
@@ -47,11 +45,11 @@ export default {
cleanSession: false,
keepAlive: 30,
clientId: 'web-' + Math.random().toString(16).substr(2),
connectTimeout: 60000
connectTimeout: 10000
}
// 配置Mqtt地址
//let url = "wss://iot.wumei.live/mqtt"
let url = "ws://" + window.location.hostname + ":8083/mqtt";
let url = "wss://iot.wumei.live/mqtt"
// let url = "ws://" + window.location.hostname + ":8083/mqtt";
console.log("mqtt地址", url);
this.client = mqtt.connect(url, options);
this.client.on("connect", (e) => {