index.js 427 Bytes
Newer Older
1 2
import dva from 'dva';
import 'moment/locale/zh-cn';
afc163's avatar
afc163 committed
3
import './polyfill';
4
import './g2';
afc163's avatar
afc163 committed
5
import './raven';
ddcat1115's avatar
ddcat1115 committed
6
// import { browserHistory } from 'dva/router';
7 8 9 10 11 12 13 14 15 16
import './index.less';

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

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

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

// 4. Router
app.router(require('./router'));

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