From b720bf4b248d88079fc3416053b19b13b9d01edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B4=9B=E5=B8=8C=E9=9B=85?= Date: Tue, 7 May 2024 21:32:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E9=A1=B5=E9=9D=A2=E6=97=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=96=AD=E5=BC=80=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mqtt/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/mqtt/index.vue b/src/views/mqtt/index.vue index 031e58e..4d0892c 100644 --- a/src/views/mqtt/index.vue +++ b/src/views/mqtt/index.vue @@ -55,6 +55,10 @@ async function disconnect() { publishing.status = false } +onUnmounted(() => { + disconnect() +}) + async function publish() { let jsonModule: DataLibContent try {