From 240784a3b285bcdf33cb249a149539426561f569 Mon Sep 17 00:00:00 2001 From: guoyue Date: Tue, 11 Oct 2022 17:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E8=B7=B3=E8=BD=AC=EF=BC=9A?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E5=B8=82=E5=B1=80=E5=92=8C=E8=A5=BF=E6=B5=B7?= =?UTF-8?q?=E5=B2=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/mynoticeView/components/NoticeList.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/front/src/views/mynoticeView/components/NoticeList.vue b/front/src/views/mynoticeView/components/NoticeList.vue index 38fae12d..5b20b970 100644 --- a/front/src/views/mynoticeView/components/NoticeList.vue +++ b/front/src/views/mynoticeView/components/NoticeList.vue @@ -262,6 +262,8 @@ const goPage = (item) => { } } } +let isQingDao = whoShow.itShowQingDao; + // 更改消息状态 const read = (item) => { if (selectData.value.length === 0 && !item) { @@ -272,7 +274,9 @@ const read = (item) => { if (item) { // 已读状态 if (item.readStatus === 1) { - goPage(item) + if(isQingDao) { + goPage(item) + } // 跳转页面 return } @@ -281,10 +285,12 @@ const read = (item) => { message.success('通知已读!') mybus.emit('getMynotice') init() - // 页面跳转 - setTimeout(() => { - goPage(item) - }, 1000) + if (isQingDao) { + // 页面跳转 + setTimeout(() => { + goPage(item) + }, 1000) + } } else { message.error('操作失败!') }