From f79bf1a43f21bf6c8f353c8df0e54fba0f54b71d Mon Sep 17 00:00:00 2001 From: hwj Date: Mon, 5 Jan 2026 10:27:46 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E9=87=87=E9=9B=86=E8=AE=BE?= =?UTF-8?q?=E5=A4=87-=E5=85=B3=E9=97=AD=E5=AE=9A=E6=97=B6=E5=99=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/device/index.vue | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index cf5179d5..76ce27b0 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -345,20 +345,9 @@ const handleToggleConnect = async (row: DeviceVO) => { } } -let timer: any = null; /** 初始化 **/ onMounted(() => { getList() - timer = setInterval(async () => { - const data = await DeviceApi.getDevicePage(queryParams) - list.value = data.list - total.value = data.total - }, 5000); -}) -// 组件卸载时销毁图表 -onUnmounted(() => { - if (timer) { - clearInterval(timer); - } }) +