标签:export rom span imp 需要 model his browser nbsp
import createHistory from ‘history/createBrowserHistory‘; const history = createHistory(); export default history;
import history from ‘./utils/history‘; const app = dva({ history: history)}
然后在需要的地方直接饮用
history.push(‘/‘);
标签:export rom span imp 需要 model his browser nbsp
原文地址:https://www.cnblogs.com/unreal-feather/p/10335096.html