diff --git a/src/index.jsx b/src/index.jsx index 0d455cf3b308..7ec9aed1fccc 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -12,10 +12,11 @@ const BlogDetail = asyncComponent(() => import('./pages/blogDetail')); const Documentation = asyncComponent(() => import('./pages/documentation')); class App extends React.Component { + render() { // 最后两个未用模板参数的原因是路径深度不一定 return ( - + diff --git a/src/pages/community/eventCard.jsx b/src/pages/community/eventCard.jsx index 54dd1e51c701..aebc110fca03 100644 --- a/src/pages/community/eventCard.jsx +++ b/src/pages/community/eventCard.jsx @@ -6,7 +6,9 @@ class EventCard extends React.Component { const { event } = this.props; return (
- + + +

{event.title}

{event.content}