A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: the latest list shows author information optimization
shuai8be86ae71f92
diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsxindex f7075c73..fcf0e141 100644--- a/ui/src/components/QuestionList/index.tsx+++ b/ui/src/components/QuestionList/index.tsx@@ -28,9 +28,9 @@ interface Props {source: 'questions' | 'tag';}-const QuestionLastUpdate = ({ q }) => {+const QuestionLastUpdate = ({ q, order }) => {const { t } = useTranslation('translation', { keyPrefix: 'question' });- if (q.update_time > q.edit_time) {+ if (order !== 'newest' && q.update_time > q.edit_time) {// question answeredreturn (<div className="d-flex">@@ -49,7 +49,7 @@ const QuestionLastUpdate = ({ q }) => {);}- if (q.edit_time > q.update_time) {+ if (order !== 'newest' && q.edit_time > q.update_time) {// question modifiedreturn (<div className="d-flex">@@ -132,7 +132,7 @@ const QuestionList: FC<Props> = ({ source }) => {</NavLink></h5><div className="d-flex flex-column flex-md-row align-items-md-center fs-14 mb-2 text-secondary">- <QuestionLastUpdate q={li} />+ <QuestionLastUpdate q={li} order={curOrder} /><div className="ms-0 ms-md-3 mt-2 mt-md-0"><span><Icon name="hand-thumbs-up-fill" />