Skip to content

Commit

Permalink
13. Use browserHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Dec 21, 2016
1 parent b3b28c0 commit ecbafdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import dva from 'dva';
import { browserHistory } from 'dva/router';
import createLoading from 'dva-loading';
import './index.html';
import './index.css';

// 1. Initialize
const app = dva();
const app = dva({
history: browserHistory,
});

// 2. Plugins
app.use(createLoading());
Expand Down

0 comments on commit ecbafdb

Please sign in to comment.