From b6dbea04f187a479726dc167e2548e800e0c0034 Mon Sep 17 00:00:00 2001 From: gaoyunqi Date: Mon, 20 May 2024 10:07:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E5=9C=A8=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E6=97=B6=E5=B1=8F=E8=94=BD=E6=96=B0=E9=97=BB=E5=92=8C?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=9A=84=E8=BD=AE=E8=AF=A2=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/default/header/components/notify/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/default/header/components/notify/index.vue b/src/layouts/default/header/components/notify/index.vue index 0fde805..9dc9a98 100644 --- a/src/layouts/default/header/components/notify/index.vue +++ b/src/layouts/default/header/components/notify/index.vue @@ -196,7 +196,7 @@ if (o.read) o.read = []; }); try { - let res = await getOaNews(1); + let res = import.meta.env.VITE_DISABLE_NEWS ? [] : await getOaNews(1); res.list.forEach((o) => { if (!o.readId) listData.value[0].unreadNum += 1; listData.value[0].list.push({ @@ -210,7 +210,7 @@ read: o.isRead, }); }); - let res1 = await getOaNews(2); + let res1 = import.meta.env.VITE_DISABLE_NEWS ? [] : await getOaNews(2); res1.list.forEach((o) => { if (!o.readId) listData.value[1].unreadNum += 1; listData.value[1].list.push({ @@ -224,7 +224,7 @@ read: o.isRead, }); }); - let res2 = await getOaMessage(); + let res2 = import.meta.env.VITE_DISABLE_NEWS ? [] : await getOaMessage(); res2.forEach((o) => { if (o.messageType === 0) { if (!o.isRead) listData.value[2].unreadNum += 1;