Dva: browserHistory 路由地址栏输入、刷新(not fount)问题

Created on 21 Nov 2016  ·  2Comments  ·  Source: dvajs/dva

通过Link点击能够跳转,但是刷新,或者直接从地址栏输入,会显示 not fount(只有根路径没问题)

faq question

Most helpful comment

All 2 comments

  1. npm install dora-plugin-browser-history --save-dev
  2. package.jsonscript-> "start": "dora --plugins \"proxy,webpack,webpack-hmr,browser-history?index=/src/index.html\"",
  3. tnpm start
Was this page helpful?
0 / 5 - 0 ratings