解决方法有三种:
1. 改用 hashHistory,在 .umirc.js或者是config.js 里配 history: 'hash'
.umirc.js或者是config.js
history: 'hash'
2.静态化,在 .umirc.js 里配 exportStatic: true
.umirc.js
exportStatic: true
3.服务端配置路由 fallback 到 index.html