-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
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
配置hash history后,路径不正确 #2597
Comments
遇到同样的问题,umi version是2.7.5 |
可以换到2.6.16版本,是正常的 |
the some 而且 NavLink 中 会把 base 带到路径中去 |
可复现地址 git@github.com:mizi-lin/umi-issues.git 望急修 |
ant-design-pro2.3.1的umi2.4.4也有这个问题 |
@amily4555 不能复现? |
有问题再 reopen。 |
同样遇到问题。复线方法如下。 https://github.com/DiamondYuan/vanaheim 修改 packages/vanaheim-website/.umirc.ts 的 history 为 'hash' yarn && yarn bootstrap && yarn dev-website |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
config.ts中配置:
history: 'hash',
base: '/learn',
期望:http://localhost:8000/learn/#/index
实际:http://localhost:8000/#/learn/index
并且后续的路由跳转(例如回到首页),浏览器中的#没了,又变成了browserHistory的形式:
http://localhost:8000/learn/index
The text was updated successfully, but these errors were encountered: