index.js 490 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';
偏右's avatar
偏右 committed
5
import './rollbar';
陈帅's avatar
陈帅 committed
6
import onError from './error';
nikogu's avatar
nikogu committed
7
// import browserHistory from 'history/createBrowserHistory';
8 9 10
import './index.less';
// 1. Initialize
const app = dva({
nikogu's avatar
nikogu committed
11
  // history: browserHistory(),
陈帅's avatar
陈帅 committed
12
  onError,
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
afc163's avatar
afc163 committed
22
app.router(require('./router'));
23 24 25

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