mirror of https://gitee.com/answerdev/answer.git
fix: timeline for tag url add mian tag slug-name
This commit is contained in:
parent
f882058266
commit
da20711a6d
|
@ -399,6 +399,7 @@ export interface TimelineObject {
|
|||
object_type: string;
|
||||
question_id: string;
|
||||
answer_id: string;
|
||||
main_tag_slug_name?: string;
|
||||
}
|
||||
|
||||
export interface TimelineRes {
|
||||
|
|
|
@ -34,7 +34,10 @@ const Index: FC = () => {
|
|||
}
|
||||
|
||||
if (timelineData?.object_info.object_type === 'tag') {
|
||||
linkUrl = `/tags/${timelineData?.object_info.title}`;
|
||||
linkUrl = `/tags/${
|
||||
timelineData?.object_info.main_tag_slug_name ||
|
||||
timelineData?.object_info.title
|
||||
}`;
|
||||
}
|
||||
|
||||
const revisionList =
|
||||
|
|
Loading…
Reference in New Issue