We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dumi2 是否支持文档多版本呢 考虑维护问题,所以还是希望使用约定式路由,本计划是通过 onRouteChange 做路由重定向到对应版本,但是由于 dumi2仅支持二级导航,因此多嵌套一套version路由会导致sideBar异常, 请问有什么好的解决方案吗
import { history } from 'dumi'; export function onRouteChange(router: any) { const { routes, location: { pathname }, } = router; if (pathname.startsWith('/xxx')) { history.replace(pathname.replace('/xxx', `/v2/xxx`)); } }
The text was updated successfully, but these errors were encountered:
Duplicate of #208 (comment)
Sorry, something went wrong.
No branches or pull requests
Question
dumi2 是否支持文档多版本呢
考虑维护问题,所以还是希望使用约定式路由,本计划是通过 onRouteChange 做路由重定向到对应版本,但是由于 dumi2仅支持二级导航,因此多嵌套一套version路由会导致sideBar异常, 请问有什么好的解决方案吗
Sample Code
The text was updated successfully, but these errors were encountered: