diff --git a/spug_web/src/pages/home/Notice.js b/spug_web/src/pages/home/Notice.js index 2caa415..18c406e 100644 --- a/spug_web/src/pages/home/Notice.js +++ b/spug_web/src/pages/home/Notice.js @@ -4,7 +4,7 @@ * Released under the AGPL-3.0 License. */ import React, { useEffect, useState } from 'react'; -import { Button, Card, List, Modal, Form, Input, Switch, Divider } from 'antd'; +import { Button, Card, List, Modal, Form, Input, Switch, Divider, Typography } from 'antd'; import { DownSquareOutlined, PlusOutlined, UpSquareOutlined, SoundOutlined } from '@ant-design/icons'; import { http } from 'libs'; import styles from './index.module.less'; @@ -125,7 +125,11 @@ function NoticeIndex(props) { {notice ? ( - {notice.content} + + {notice.content.split('\n').map((item, index) => ( + {item} + ))} + ) : null}