import createHistory from 'history/createBrowserHistory'; const history = createHistory(); export default history;
import history from './utils/history'; const app = dva({ history: history)}
而後在須要的地方直接飲用 history.push('/');