Merge branch 'main' into gitee

This commit is contained in:
xiaoxian521
2024-03-24 21:21:00 +08:00
3 changed files with 90 additions and 140 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
// vue 3 + vite use MQTT.js refer to https://github.com/mqttjs/MQTT.js/issues/1269
import mqtt from "mqtt";
import * as mqtt from "mqtt/dist/mqtt.min";
import { reactive, ref, onUnmounted } from "vue";
const protocol = location.protocol === "https:" ? "wss" : "ws";