Commit c4f69fc4 authored by WhatAKitty's avatar WhatAKitty Committed by 偏右

No default with export multi objects (#337)

* https://github.com/babel/babel/issues/2212
Fix wrong way of export multi objects.

* Dva model cannot using import for app.model
parent d1596ea9
...@@ -14,7 +14,7 @@ import TimelineChart from './TimelineChart'; ...@@ -14,7 +14,7 @@ import TimelineChart from './TimelineChart';
const yuan = val => `¥ ${numeral(val).format('0,0')}`; const yuan = val => `¥ ${numeral(val).format('0,0')}`;
export default { export {
yuan, yuan,
Bar, Bar,
Pie, Pie,
......
...@@ -5,7 +5,6 @@ import './g2'; ...@@ -5,7 +5,6 @@ import './g2';
import './rollbar'; import './rollbar';
// import browserHistory from 'history/createBrowserHistory'; // import browserHistory from 'history/createBrowserHistory';
import './index.less'; import './index.less';
import router from './router';
// 1. Initialize // 1. Initialize
const app = dva({ const app = dva({
...@@ -19,7 +18,7 @@ const app = dva({ ...@@ -19,7 +18,7 @@ const app = dva({
app.model(require('./models/global')); app.model(require('./models/global'));
// 4. Router // 4. Router
app.router(router); app.router(import('./router'));
// 5. Start // 5. Start
app.start('#root'); app.start('#root');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment