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}

+
+ ))} +
+
+ ) +}