Dva: 使用BrowserRouter进去还是有#/

Created on 4 Jan 2018  ·  2Comments  ·  Source: dvajs/dva

路由使用BrowserRouter进去还是有#/,跳转没有,刷新后也会出来#
需要怎么配置,还是加啥?

Most helpful comment

根目录/src/index.js文件:
import browserHistory from 'history/createBrowserHistory';
const app = dva({
history: browserHistory(),
});

All 2 comments

根目录/src/index.js文件:
import browserHistory from 'history/createBrowserHistory';
const app = dva({
history: browserHistory(),
});

@shizhiqian 还是不可以啊
image
image
image

Was this page helpful?
0 / 5 - 0 ratings