diff --git a/src/forge/SecuritySetting/notice/myNotice/Index.jsx b/src/forge/SecuritySetting/notice/myNotice/Index.jsx index 92960dffd..4a7a3094a 100644 --- a/src/forge/SecuritySetting/notice/myNotice/Index.jsx +++ b/src/forge/SecuritySetting/notice/myNotice/Index.jsx @@ -142,6 +142,10 @@ function MyNotice(props) { setBatchDeleteCheckAll(false); } + function turnToPersonalCenter(){ + window.open(`/${current_user && current_user.login}`); + } + return (
@@ -183,7 +187,7 @@ function MyNotice(props) {
{item.status === 1 ? : } - {item.notification_url && window.open("https://"+`${item.notification_url}`)}} dangerouslySetInnerHTML={{__html: item.content}}> + {item.notification_url && window.open("https://"+`${item.notification_url}`);readNotice([item.id])}} dangerouslySetInnerHTML={{__html: item.content}}>
{item.time_ago} @@ -199,11 +203,11 @@ function MyNotice(props) {
{/* */} - {item.sender && } + {item.sender && }
{item.status === 1 ? : }
- {item.sender &&
{item.sender.name}
} -
{item.notification_url && window.open("https://"+`${item.notification_url}`)}} dangerouslySetInnerHTML={{__html: item.content+" 中@我"}}>
+ {/* {item.sender &&
{item.sender.name}
} */} + {item.sender &&
{item.notification_url && window.open("https://"+`${item.notification_url}`);readNotice([item.id])}} dangerouslySetInnerHTML={{__html: "" + item.sender.name +"   " + item.content +" 中@我"}}>
}
diff --git a/src/forge/SecuritySetting/notice/myNotice/Index.scss b/src/forge/SecuritySetting/notice/myNotice/Index.scss index ac0de198a..b10f28a77 100644 --- a/src/forge/SecuritySetting/notice/myNotice/Index.scss +++ b/src/forge/SecuritySetting/notice/myNotice/Index.scss @@ -155,12 +155,9 @@ button:active { position:absolute; } - & .atme-sender-name{ - padding: 0 4px; - } - & .atme-cont{ - max-width: 42rem; + max-width: 48rem; + margin-left: 12px; } } }