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

解决方法有三种:

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

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

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

 

相关文章:

  • 2022-12-23
  • 2022-02-27
  • 2021-08-26
  • 2022-12-23
  • 2021-05-27
猜你喜欢
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案