From 2f8b6c3d458c5fc7623c83fee2a02e4f11bb5e7f Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Wed, 25 Oct 2017 15:44:37 +0800 Subject: [PATCH] revert to dva/router .... --- src/components/Charts/Pie/index.js | 2 +- src/components/EditableLinkGroup/index.js | 2 +- src/components/Exception/index.js | 2 +- src/components/PageHeader/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Charts/Pie/index.js b/src/components/Charts/Pie/index.js index 36243fdc..ad2d4e2a 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 ba997964..c1876ab5 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 d6d847b9..96ff430b 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 97ea900d..035c7e50 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'; -- GitLab