diff --git a/src/components/Charts/TagCloud/index.js b/src/components/Charts/TagCloud/index.js index 6667c1217e4d9d74f725f1d2b1e3c5f35d622dc2..6f11c4795175f7aa00bd41e739525c36b174ebed 100644 --- a/src/components/Charts/TagCloud/index.js +++ b/src/components/Charts/TagCloud/index.js @@ -131,7 +131,16 @@ class TagCloud extends Component { ref={this.saveRootRef} > {dv && ( - + diff --git a/src/g2.js b/src/components/Charts/g2.js similarity index 100% rename from src/g2.js rename to src/components/Charts/g2.js diff --git a/src/components/Charts/index.js b/src/components/Charts/index.js index d974de6708da4edcc18980e543b0dbdf3f782fec..0fbf014436a8eec5a0d443ac91d465765c69d1cc 100644 --- a/src/components/Charts/index.js +++ b/src/components/Charts/index.js @@ -1,4 +1,5 @@ import numeral from 'numeral'; +import './g2'; import ChartCard from './ChartCard'; import Bar from './Bar'; import Pie from './Pie'; diff --git a/src/index.js b/src/index.js index f1a55e951c0b5f268b54cab1247327667f4781e4..844b84a48e57a0e8d1fe51970718500f6e5da0a2 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,6 @@ import '@babel/polyfill'; import dva from 'dva'; import 'moment/locale/zh-cn'; import FastClick from 'fastclick'; -import './g2'; import './rollbar'; import onError from './error'; // import browserHistory from 'history/createBrowserHistory';