From d49e29012b220ef4a11c00096fa060e729b70080 Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Mon, 5 Jan 2026 14:12:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor(andonDashboard):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=B7=E6=96=B0=E5=AE=9A=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了 refreshTimer 属性 - 移除了每60秒自动刷新数据的功能 - 删除了组件销毁时清除定时器的逻辑 --- src/views/production/andonDashboard/index.vue | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/views/production/andonDashboard/index.vue b/src/views/production/andonDashboard/index.vue index 5d5ab4d..bf39e35 100644 --- a/src/views/production/andonDashboard/index.vue +++ b/src/views/production/andonDashboard/index.vue @@ -294,7 +294,6 @@ export default { productLineList: [], updateTime: '', loading: false, - refreshTimer: null, // 设备状态 deviceStatus: { totalDevices: 0, @@ -353,15 +352,8 @@ export default { created() { this.loadProductLines(); this.loadData(); - // 每60秒自动刷新 - this.refreshTimer = setInterval(() => { - this.loadData(); - }, 60000); }, beforeDestroy() { - if (this.refreshTimer) { - clearInterval(this.refreshTimer); - } }, methods: { loadProductLines() {