diff --git a/.dumi/pages/index.tsx b/.dumi/pages/index.tsx index a54f78a..98e1240 100644 --- a/.dumi/pages/index.tsx +++ b/.dumi/pages/index.tsx @@ -298,7 +298,9 @@ const MainPage = () => { const push = (link: string) => { // @ts-ignore - history.push(`${locale.base}/${link}`); + const base = locale.base; + if (base === '/') history.push(`/${link}`); + else history.push(`${base}/${link}`); }; useEffect(() => { diff --git a/package.json b/package.json index 8322759..32271f2 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@types/react-dom": "^18.2.7", "antd": "^5.8.4", "copy-to-clipboard": "^3.3.3", - "dumi": "^2.2.13", + "dumi": "^2.2.14", "husky": "^8.0.3", "lint-staged": "^15.0.2", "prettier": "^3.0.3",