From 016c3cda5a6ac05a42944491b4fb16a25f087fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Wed, 15 Dec 2021 23:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=88=AA=E5=8F=96=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/components/tools/HeaderNotice.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jshERP-web/src/components/tools/HeaderNotice.vue b/jshERP-web/src/components/tools/HeaderNotice.vue index dfb843c0..a9291e33 100644 --- a/jshERP-web/src/components/tools/HeaderNotice.vue +++ b/jshERP-web/src/components/tools/HeaderNotice.vue @@ -103,6 +103,10 @@ getAction(this.url.getMsgByStatus, { status: '1'}).then((res) => { if (res && res.code === 200) { this.announcement1 = res.data; + if(this.announcement1.length>5) { + this.announcement1 = this.announcement1.reverse() + this.announcement1 = this.announcement1.slice(0,5) + } this.msg1Count = res.data.length; this.msg1Title = "通知(" + res.data.length + ")"; }