From 671b774ead796cd6322d118ebff320852f539483 Mon Sep 17 00:00:00 2001 From: zty Date: Tue, 7 Jul 2026 04:05:06 -0400 Subject: [PATCH] feat(web): articles list page and route --- .../iapip-web/src/pages/articles/index.tsx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 空气质量预测/源码/用户端/iapip-web/src/pages/articles/index.tsx diff --git a/空气质量预测/源码/用户端/iapip-web/src/pages/articles/index.tsx b/空气质量预测/源码/用户端/iapip-web/src/pages/articles/index.tsx new file mode 100644 index 0000000..94845ed --- /dev/null +++ b/空气质量预测/源码/用户端/iapip-web/src/pages/articles/index.tsx @@ -0,0 +1,24 @@ +import { history } from '@umijs/max' +import { articles } from '@/common/articles' + +export default function ArticleList() { + return ( +
+ history.push('/landing')} style={{ color: '#888' }}>← 返回首页 +

健康装修科普

+
+ {articles.map(a => ( +
history.push('/article/' + a.id)} + style={{ cursor: 'pointer', padding: 20, border: '1px solid #eee', borderRadius: 8, transition: 'box-shadow .2s' }} + > +
{a.tag} · {a.date}
+

{a.title}

+

{a.summary}

+
+ ))} +
+
+ ) +}