index.js 467 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
import './index.less';
Jifa Jiang's avatar
Jifa Jiang committed
8
import router from './router';
9 10 11

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

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

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

// 4. Router
Jifa Jiang's avatar
Jifa Jiang committed
22
app.router(router);
23 24 25

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