Dva: 如何去掉url里面的‘#’?

Created on 26 Jun 2017  ·  2Comments  ·  Source: dvajs/dva

配置route之后
http://localhost:8000/#/sample 才能匹配到
如何去掉中间这个#?

Most helpful comment

@wuzhuzhu 使用 broswerHistory

All 2 comments

@wuzhuzhu 使用 broswerHistory

在index.js文件中使用const app = dva({ history: browserHistory });

Was this page helpful?
0 / 5 - 0 ratings