完善圈子
This commit is contained in:
@@ -106,6 +106,8 @@ const Circle = () => {
|
||||
}
|
||||
const res = await saveMoment(params)
|
||||
if (res.success) {
|
||||
setComment('')
|
||||
setImgList([])
|
||||
getMomentList()
|
||||
return message.success('发布成功')
|
||||
}
|
||||
@@ -154,6 +156,7 @@ const Circle = () => {
|
||||
className='top-text-area'
|
||||
onFocus={() => toggleFocus(false)}
|
||||
onBlur={() => toggleFocus(true)}
|
||||
value={comment}
|
||||
/>
|
||||
<Upload
|
||||
name='uploadFile'
|
||||
@@ -228,7 +231,7 @@ const Circle = () => {
|
||||
description={item.content}
|
||||
/>
|
||||
{item.picUrlList?.length && (
|
||||
<Image.PreviewGroup items={previewList.list}>
|
||||
<Image.PreviewGroup items={item.picUrlList}>
|
||||
<div className='img-list'>
|
||||
{item.picUrlList.map((t: string) => (
|
||||
<Image key={t} width={110} src={t} />
|
||||
@@ -237,7 +240,18 @@ const Circle = () => {
|
||||
</Image.PreviewGroup>
|
||||
)}
|
||||
<div className='card-footer'>
|
||||
<a key='share' className='footer-item'>
|
||||
<a
|
||||
key='share'
|
||||
className='footer-item'
|
||||
onClick={() =>
|
||||
window.open(
|
||||
'https://service.weibo.com/share/share.php?url=' +
|
||||
encodeURIComponent(location.href) +
|
||||
'&title=' +
|
||||
item.content
|
||||
)
|
||||
}
|
||||
>
|
||||
<ShareAltOutlined />
|
||||
<span style={{ marginLeft: 8 }}>分享</span>
|
||||
</a>
|
||||
@@ -253,7 +267,9 @@ const Circle = () => {
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
{currentReplyCommentId === item.id && <CommentList momentId={item.id} />}
|
||||
{currentReplyCommentId === item.id && (
|
||||
<CommentList momentId={item.id} replyCount={item.replyCount} />
|
||||
)}
|
||||
</Card>
|
||||
)
|
||||
})}
|
||||
|
Reference in New Issue
Block a user