From fcc458e5b4289f9d0561648e137271084aea0eab Mon Sep 17 00:00:00 2001 From: admin <1297598740@qq.com> Date: Thu, 29 Jan 2026 14:14:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=85=A8=E5=91=98?= =?UTF-8?q?=E5=85=AC=E5=91=8A=E5=8F=91=E5=B8=83=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E5=8F=91=E5=B8=83=E8=A1=A8=E5=8D=95=E5=92=8C?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E5=B1=95=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Notifications/NotificationPublish.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Notifications/NotificationPublish.tsx b/src/pages/Notifications/NotificationPublish.tsx index 861d27e..5f4c684 100644 --- a/src/pages/Notifications/NotificationPublish.tsx +++ b/src/pages/Notifications/NotificationPublish.tsx @@ -25,8 +25,8 @@ const NotificationPublish: React.FC = () => { setHistoryLoading(true); try { const res: any = await request.get('/notifications/announcements?limit=5'); - if (res && res.announcements) { - setHistory(res.announcements); + if (res && res.success && res.data && res.data.announcements) { + setHistory(res.data.announcements); } } catch (error) { console.error('获取历史记录失败:', error);