diff --git a/src/common/nav.js b/src/common/nav.js index 263190c1a70878072d42751a26aaa8b8baf48f33..2a7abe152bcbfe7d5d5ee320f5e8650c2b30b6a0 100644 --- a/src/common/nav.js +++ b/src/common/nav.js @@ -36,7 +36,6 @@ function userAdapter(userData) { userAdapter(item); } else { const userItem = item; - userItem.target = '_blank'; userItem.noRoute = true; } }); diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 3738e44466ede95999d3a64b2ef30e72adf4adf3..75db512d91ddea3db6b55e59e3e6e32f1e63c9ff 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -79,7 +79,7 @@ class BasicLayout extends React.PureComponent { } return ( - + {item.name} diff --git a/src/layouts/UserLayout.js b/src/layouts/UserLayout.js index 4ae73853183e5c56fc3c93f20d0f25ad587c3381..dba340851a6228aea58b4db4cd035cfb4c284b0e 100644 --- a/src/layouts/UserLayout.js +++ b/src/layouts/UserLayout.js @@ -1,5 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; +import { Link } from 'dva/router'; import DocumentTitle from 'react-document-title'; import { Icon } from 'antd'; import GlobalFooter from '../components/GlobalFooter'; @@ -44,10 +45,12 @@ class UserLayout extends React.PureComponent {
- - Ant Design + + + Ant Design +
-

Ant Design 是东半球最具影响力的 Web 设计规范

+

Ant Design 是西湖区最具影响力的 Web 设计规范

{children}