From 3509d2d1dde28cf029a733cb959c29fc1f8a18f7 Mon Sep 17 00:00:00 2001 From: ZLY Date: Tue, 23 Sep 2025 10:03:53 +0800 Subject: [PATCH] =?UTF-8?q?pref(announcement):=20=E4=BF=AE=E6=94=B9mock?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=BA=E9=9D=99=E6=80=81=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/workplace/announcement.tsx | 36 ++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/src/pages/dashboard/workplace/announcement.tsx b/src/pages/dashboard/workplace/announcement.tsx index 6482fa8..4b449b7 100644 --- a/src/pages/dashboard/workplace/announcement.tsx +++ b/src/pages/dashboard/workplace/announcement.tsx @@ -13,14 +13,34 @@ function Announcement() { const fetchData = () => { setLoading(true); - axios - .get('/api/workplace/announcement') - .then((res) => { - setData(res as any); - }) - .finally(() => { - setLoading(false); - }); + setData([ + { + type: 'activity', + key: '1', + content: '组件库新增10+个组件' + }, + { + type: 'info', + key: '2', + content: '定时任务执行成功1次,失败0次。' + }, + { + type: 'notice', + key: '3', + content: '当前产品试用期即将结束,如需续费请点击查看。' + }, + { + type: 'notice', + key: '4', + content: '1 月新系统升级计划通知' + }, + { + type: 'info', + key: '5', + content: '新增内容已经通过审核,详情请点击查看。' + } + ]); + setLoading(false); }; useEffect(() => {