From dd1cf0e81f440e2b496f4626feb3a9906148e62a Mon Sep 17 00:00:00 2001 From: vapao Date: Wed, 31 Mar 2021 23:15:45 +0800 Subject: [PATCH] fix issue --- spug_web/src/pages/home/Notice.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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}