index.js 449 Bytes
Newer Older
afc163's avatar
afc163 committed
1
import 'babel-polyfill';
2 3
import dva from 'dva';
import 'moment/locale/zh-cn';
4
import './g2';
5
import './rollbar';
nikogu's avatar
nikogu committed
6
// import browserHistory from 'history/createBrowserHistory';
7 8 9 10
import './index.less';

// 1. Initialize
const app = dva({
nikogu's avatar
nikogu committed
11
  // history: browserHistory(),
12 13 14 15 16
});

// 2. Plugins
// app.use({});

WhatAKitty's avatar
WhatAKitty committed
17 18
// 3. Register global model
app.model(require('./models/global'));
19 20

// 4. Router
afc163's avatar
afc163 committed
21
app.router(require('./router'));
22 23 24

// 5. Start
app.start('#root');