fix: timeline for tag url add mian tag slug-name

This commit is contained in:
shuai 2022-11-23 15:29:28 +08:00
parent f882058266
commit da20711a6d
2 changed files with 5 additions and 1 deletions

View File

@ -399,6 +399,7 @@ export interface TimelineObject {
object_type: string;
question_id: string;
answer_id: string;
main_tag_slug_name?: string;
}
export interface TimelineRes {

View File

@ -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 =