12345678910111213141516171819202122232425262728293031323334 |
- import '@babel/polyfill';
- import 'url-polyfill';
- import dva from 'dva';
- import createHistory from 'history/createBrowserHistory';
- import createLoading from 'dva-loading';
- import 'moment/locale/zh-cn';
- import FastClick from 'fastclick';
- import './rollbar';
- import './index.less';
- const app = dva({
- history: createHistory(),
- });
- app.use(createLoading());
- app.model(require('./models/global').default);
- app.router(require('./router').default);
- app.start('#root');
- FastClick.attach(document.body);
- export default app._store;
|