antdpro 打包部署后访问路由刷新后404

antdpro build 后访问路由刷新后 404?

解决方法有三种:html

1. 改用 hashHistory,在 .umirc.js或者是config.js 里配 history: 'hash'antd

2.静态化,在 .umirc.js 里配 exportStatic: trueide

3.服务端配置路由 fallback 到 index.htmlui

相关文章
相关标签/搜索