src/views/device/threadManage.vue
@@ -1,5 +1,5 @@ <script setup name="threadManage"> import { ref, onMounted, reactive, computed, watchEffect } from "vue"; import { ref, onActivated, reactive, computed, watchEffect } from "vue"; import useWebSocket from "@/hooks/useWebsocket.js"; import formatSeconds from '@/utils/formatSeconds'; @@ -155,7 +155,7 @@ dialogVisible.value = true; } onMounted(() => { onActivated(() => { sendMessage(); });