diff --git a/src/components/Charts/Pie/index.js b/src/components/Charts/Pie/index.js index 36243fdc03dc7adf23dd781c69db50c856908b52..ad2d4e2aa2fb05f082d043a4e2f5eec6fe043a08 100644 --- a/src/components/Charts/Pie/index.js +++ b/src/components/Charts/Pie/index.js @@ -101,7 +101,7 @@ class Pie extends Component { let m = margin; if (!margin) { if (hasLegend) { - m = [24, 240, 24, 0]; + m = [24, 240, 24, 8]; } else if (percent) { m = [0, 0, 0, 0]; } else { diff --git a/src/components/EditableLinkGroup/index.js b/src/components/EditableLinkGroup/index.js index ba99796475e4363ae8f29aeff9e0a87d9d3f9ae2..c1876ab5e611563de9da6b341af261cc1e13ec6a 100644 --- a/src/components/EditableLinkGroup/index.js +++ b/src/components/EditableLinkGroup/index.js @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; -import { Link } from 'react-router'; +import { Link } from 'dva/router'; import { Button, Icon } from 'antd'; import styles from './index.less'; diff --git a/src/components/Exception/index.js b/src/components/Exception/index.js index d6d847b96ebf7483a3e36bb035df56e30673dfa4..96ff430b73acc03884cef53a7d5f71119adcffc3 100644 --- a/src/components/Exception/index.js +++ b/src/components/Exception/index.js @@ -1,7 +1,7 @@ import React from 'react'; import classNames from 'classnames'; import { Button } from 'antd'; -import { Link } from 'react-router'; +import { Link } from 'dva/router'; import config from './typeConfig'; import styles from './index.less'; diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index 97ea900dcd2f455fea46a4a1cf9556f497f56f2f..035c7e50036e1212034f78c1241feebf7c8bfe3d 100644 --- a/src/components/PageHeader/index.js +++ b/src/components/PageHeader/index.js @@ -1,7 +1,7 @@ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { Breadcrumb, Tabs } from 'antd'; -import { Link } from 'react-router'; +import { Link } from 'dva/router'; import classNames from 'classnames'; import styles from './index.less';