From ce663c9182bed1645de85074f3b80dd95b9fcce9 Mon Sep 17 00:00:00 2001 From: Iruka <1017819588@qq.com> Date: Tue, 24 Dec 2024 11:58:40 +0800 Subject: [PATCH] . --- App.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/App.vue b/App.vue index 33e4a2e..044eaf8 100644 --- a/App.vue +++ b/App.vue @@ -6,13 +6,14 @@ dcEventType } from "@/utils/indexUtil/dc.js" import mqttUtil from "@/utils/mqttUtil.js" + const mqttUrl = import.meta.env.VITE_BASE_MQTT; export default { data() { return { ijs: new indexUtil(), //全局地块列表管理 dc: new deviceControl(2, this.dcEventHandler), // 设备控制类 - mqtt: new mqttUtil(this.mqttStateHandler, this.mqttMsgHandler), //Mqtt + mqtt: new mqttUtil(mqttUrl, this.mqttStateHandler, this.mqttMsgHandler), //Mqtt isFirseLink: true, //Mqtt第一次链接 mqttFun: {}, landFun: {},