From f3771ff9247006b252194e283b90e6c0e50d7c04 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Thu, 15 May 2025 10:18:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E6=A3=80=E7=A6=BB=E5=BC=80?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E5=AE=9A=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/check/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/check/index.vue b/src/components/check/index.vue index 55f54ee..a98f2ed 100644 --- a/src/components/check/index.vue +++ b/src/components/check/index.vue @@ -3,7 +3,7 @@ import { getContainerList } from '@/apis/container' import { getSelfFinish, getSelfStatus } from '@/apis/self' import { ElMessage } from 'element-plus' import { useHomeStore } from 'stores/homeStore' -import { onMounted, ref, watch } from 'vue' +import { onMounted, onUnmounted, ref, watch } from 'vue' interface SelfStatus { name: string @@ -29,6 +29,9 @@ watch(() => props.checking, (newVal) => { onMounted(() => { onStartSelfTest() }) +onUnmounted(() => { + clearInterval(patrolTimes.value) +}) const onStartSelfTest = () => { if (props.checking) {