antdpro build 后访问路由刷新后 404?
解决方法有三种:
1. 改用 hashHistory,在 .umirc.js或者是config.js
里配 history: 'hash'
2.静态化,在 .umirc.js
里配 exportStatic: true
3.服务端配置路由 fallback 到 index.html
解决方法有三种:
1. 改用 hashHistory,在 .umirc.js或者是config.js
里配 history: 'hash'
2.静态化,在 .umirc.js
里配 exportStatic: true
3.服务端配置路由 fallback 到 index.html
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。