-
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 为true,并同时配置 base 后 hash路径问题 #2743
Comments
原来是版本问题么... 我以为用了base就不能用hash history. 现在用回browserHistory 同时改了nginx的匹配逻辑... |
base 去掉就行了 |
any question? |
功能就是需要base啊... 去掉是什么情况... |
base 带 export default {
history: 'hash',
base: '/foo/'
}; |
使用新配置 umi version: 2.8.16 |
base 你理解错了,base 是路由的 base,你设了 |
那混乱了,
|
你能改配置算好的·
|
怎么解决的?遇到了同样的问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这其实是 #2597 的后续问题
umi_v2.8.8
场景
.umirc.ts
启动项目 访问route (NavLink, Link) 后地址为
http://localhost:8001/sub#/sub/base-error
但我所期望的是 (或 2.6 之前版本为)
http://localhost:8001/sub#/base-error
dev 模式下 使用
http://localhost:8001/sub/#/base-error
访问控制台警告信息
可复现资源地址:
git@github.com:mizi-lin/umi-issues.git
The text was updated successfully, but these errors were encountered: