so..
var history = require('history');
// 如果你的路由是: example/some/path 这样真实的 URL
import { createBrowserHistory } from 'history'
const history = createBrowserHistory()
// 如果你的路由是 :example/#/some/path
import { createHashHistory } from 'history'
const history = createHashHistory()
history.push(example/some/path)