From 4345c2193f4d96775d755cdeb61345af4e9767bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=B9=90=E8=A8=80?= Date: Fri, 20 Mar 2026 16:05:16 +0800 Subject: [PATCH] =?UTF-8?q?0320-=E5=8C=97=E4=BB=91=EF=BC=9A=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E5=88=86=E5=B1=82=E5=AF=BC=E5=85=A5=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=8F=90=E9=86=92=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/layout/components/Navbar.vue | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index a950c34..6ed3caa 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -168,8 +168,7 @@ export default { notReadCount: 0, noticeCenterList: [], open2: false, - downCenterList: [], - noticeCenterTimer: null + downCenterList: [] }; }, computed: { @@ -193,11 +192,9 @@ export default { }, created() { this.getCenterList(); - this.startNoticePolling(); window.addEventListener('notice-center-refresh', this.getCenterList); }, beforeDestroy() { - this.clearNoticePolling(); window.removeEventListener('notice-center-refresh', this.getCenterList); }, methods: { @@ -230,18 +227,6 @@ export default { } }); }, - startNoticePolling() { - this.clearNoticePolling(); - this.noticeCenterTimer = setInterval(() => { - this.getCenterList(); - }, 10000); - }, - clearNoticePolling() { - if (this.noticeCenterTimer) { - clearInterval(this.noticeCenterTimer); - this.noticeCenterTimer = null; - } - }, // 下载中心列表 getDownCenterList() {