From 66402ac18908dde5881edb74880cfd954e9eb6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E8=89=AF=E8=89=AF?= <330441606@qq.com> Date: Fri, 15 Sep 2023 10:20:56 +0800 Subject: [PATCH] fix: dongtai_doc --- src/components/SelectNav/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SelectNav/index.js b/src/components/SelectNav/index.js index 4b8e64c..7fb7c8f 100644 --- a/src/components/SelectNav/index.js +++ b/src/components/SelectNav/index.js @@ -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', '')