Skip to content

Commit

Permalink
fix: dongtai_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangAhua committed Sep 15, 2023
1 parent 8306c28 commit 66402ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SelectNav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import versionsList from '@site/versions.json'
export default function SelectNav({ label, items }) {
let history = useHistory();
let pathname = useLocation().pathname;
let dongtai = pathname.startsWith('/doc/')
let dongtai = pathname.startsWith('/dongtai_doc/')
let cur = pathname.replace(dongtai ? '/dongtai_doc/docs/' : '/docs/', '').split('/')[0]
let flag = cur === 'next' || versionsList.includes(cur)
let pagePath = flag ? pathname.replace(dongtai ? `/dongtai_doc/docs/${cur}` : `/docs/${cur}`, '') : pathname.replace(dongtai ? '/dongtai_doc/docs' : '/docs', '')
Expand Down

0 comments on commit 66402ac

Please sign in to comment.