diff --git a/ui/src/pages/Questions/Detail/components/Alert/index.tsx b/ui/src/pages/Questions/Detail/components/Alert/index.tsx index 14973373..bee8ece2 100644 --- a/ui/src/pages/Questions/Detail/components/Alert/index.tsx +++ b/ui/src/pages/Questions/Detail/components/Alert/index.tsx @@ -32,7 +32,7 @@ const Index: FC = ({ data }) => { {data.level === 'info' ? (
- {data.msg.indexOf('http') > -1 ? ( + {data.msg.startsWith('http') ? (

{data.description}{' '} diff --git a/ui/src/pages/Review/components/FlagContent/index.tsx b/ui/src/pages/Review/components/FlagContent/index.tsx index 43f3bbfc..f1d56032 100644 --- a/ui/src/pages/Review/components/FlagContent/index.tsx +++ b/ui/src/pages/Review/components/FlagContent/index.tsx @@ -158,13 +158,15 @@ const Index: FC = ({ refreshCount }) => { reason?.content_type && (reason?.reason_type !== 60 ? ( {flagItemData?.reason_content} - ) : ( + ) : flagItemData.reason_content?.startsWith('http') ? ( {' '} {t('show_exist', { keyPrefix: 'question_detail' })} + ) : ( + {flagItemData?.reason_content} ))}

diff --git a/ui/src/pages/Users/Personal/components/UserInfo/index.tsx b/ui/src/pages/Users/Personal/components/UserInfo/index.tsx index dee5662f..07cc20b0 100644 --- a/ui/src/pages/Users/Personal/components/UserInfo/index.tsx +++ b/ui/src/pages/Users/Personal/components/UserInfo/index.tsx @@ -128,7 +128,7 @@ const Index: FC = ({ data }) => {