From 9998e2073d04e50220be15c0f4715b3cd0c4d3df Mon Sep 17 00:00:00 2001 From: ZLY Date: Wed, 10 Sep 2025 15:12:20 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E4=BC=98=E5=8C=96=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/dashboard/workplace/announcement.tsx | 2 +- src/pages/dashboard/workplace/overview.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/dashboard/workplace/announcement.tsx b/src/pages/dashboard/workplace/announcement.tsx index 37bc4f7..6482fa8 100644 --- a/src/pages/dashboard/workplace/announcement.tsx +++ b/src/pages/dashboard/workplace/announcement.tsx @@ -16,7 +16,7 @@ function Announcement() { axios .get('/api/workplace/announcement') .then((res) => { - setData(res.data); + setData(res as any); }) .finally(() => { setLoading(false); diff --git a/src/pages/dashboard/workplace/overview.tsx b/src/pages/dashboard/workplace/overview.tsx index 24eb0de..47f1898 100644 --- a/src/pages/dashboard/workplace/overview.tsx +++ b/src/pages/dashboard/workplace/overview.tsx @@ -67,7 +67,7 @@ function Overview() { axios .get('/api/workplace/overview-content') .then((res) => { - setData(res.data); + setData(res as any); }) .finally(() => { setLoading(false);