Commit 304574aa authored by sorrycc's avatar sorrycc Committed by 陈帅

code style, use @/layouts/ and remove /index affix

parent ecd12e56
import React from 'react';
import Exception from '../Exception/index';
import Exception from '../Exception';
import CheckPermissions from './CheckPermissions';
/**
* 默认不能访问任何页面
......
......@@ -7,9 +7,9 @@ import { ContainerQuery } from 'react-container-query';
import classNames from 'classnames';
import pathToRegexp from 'path-to-regexp';
import { formatMessage } from 'umi/locale';
import SiderMenu from '../components/SiderMenu/index';
import SiderMenu from '../components/SiderMenu';
import Authorized from '../utils/Authorized';
import SettingDarwer from '../components/SettingDarwer/index';
import SettingDarwer from '../components/SettingDarwer';
import logo from '../assets/logo.svg';
import Footer from './Footer';
import Header from './Header';
......
import React, { Fragment } from 'react';
import { Layout, Icon } from 'antd';
import GlobalFooter from '../components/GlobalFooter/index';
import GlobalFooter from '../components/GlobalFooter';
const { Footer } = Layout;
const FooterView = () => (
......
......@@ -3,8 +3,8 @@ import { Layout, message } from 'antd';
import Animate from 'rc-animate';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import GlobalHeader from '../components/GlobalHeader/index';
import TopNavHeader from '../components/TopNavHeader/index';
import GlobalHeader from '../components/GlobalHeader';
import TopNavHeader from '../components/TopNavHeader';
import styles from './Header.less';
import Authorized from '../utils/Authorized';
......
import React, { Fragment } from 'react';
import { Link } from 'dva/router';
import { Icon } from 'antd';
import GlobalFooter from '../components/GlobalFooter/index';
import GlobalFooter from '../components/GlobalFooter';
import styles from './UserLayout.less';
import logo from '../assets/logo.svg';
......
......@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Link, routerRedux } from 'dva/router';
import { Card, Row, Col, Icon, Avatar, Tag, Divider, Spin, Input } from 'antd';
import GridContent from '../../../layouts/GridContent';
import GridContent from '@/layouts/GridContent';
import styles from './Center.less';
@connect(({ loading, user, project }) => ({
......
......@@ -4,7 +4,7 @@ import { routerRedux } from 'dva/router';
import { FormattedMessage } from 'umi/locale';
import { Menu } from 'antd';
import styles from './Info.less';
import GridContent from '../../../layouts/GridContent';
import GridContent from '@/layouts/GridContent';
const { Item } = Menu;
......
......@@ -27,9 +27,9 @@ import {
import Trend from 'components/Trend';
import NumberInfo from 'components/NumberInfo';
import numeral from 'numeral';
import GridContent from '../../layouts/GridContent';
import Yuan from '../../utils/Yuan';
import { getTimeDistance } from '../../utils/utils';
import GridContent from '@/layouts/GridContent';
import Yuan from '@/utils/Yuan';
import { getTimeDistance } from '@/utils/utils';
import styles from './Analysis.less';
......
......@@ -6,9 +6,9 @@ import NumberInfo from 'components/NumberInfo';
import CountDown from 'components/CountDown';
import ActiveChart from 'components/ActiveChart';
import numeral from 'numeral';
import GridContent from '../../layouts/GridContent';
import GridContent from '@/layouts/GridContent';
import Authorized from '../../utils/Authorized';
import Authorized from '@/utils/Authorized';
import styles from './Monitor.less';
const { Secured } = Authorized;
......
......@@ -14,7 +14,7 @@ import {
} from 'antd';
import { connect } from 'dva';
import FooterToolbar from 'components/FooterToolbar';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import TableForm from './TableForm';
import styles from './style.less';
......
......@@ -12,7 +12,7 @@ import {
Icon,
Tooltip,
} from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import styles from './style.less';
const FormItem = Form.Item;
......
import React, { PureComponent, Fragment } from 'react';
import { Card, Steps } from 'antd';
import PageHeaderLayout from '../../../layouts/PageHeaderLayout';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import styles from '../style.less';
// import { Route, Redirect, Switch } from 'dva/router';
......
......@@ -21,8 +21,8 @@ import {
Select,
} from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import Result from '../../components/Result';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import Result from '@/components/Result';
import styles from './BasicList.less';
......
......@@ -3,7 +3,7 @@ import { connect } from 'dva';
import { Card, Button, Icon, List } from 'antd';
import Ellipsis from 'components/Ellipsis';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import styles from './CardList.less';
......
......@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { routerRedux } from 'dva/router';
import { connect } from 'dva';
import { Input } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
@connect()
export default class SearchList extends Component {
......
......@@ -22,7 +22,7 @@ import {
Radio,
} from 'antd';
import StandardTable from 'components/StandardTable';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import styles from './TableList.less';
......
......@@ -19,7 +19,7 @@ import {
} from 'antd';
import classNames from 'classnames';
import DescriptionList from 'components/DescriptionList';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import styles from './AdvancedProfile.less';
const { Step } = Steps;
......
......@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { connect } from 'dva';
import { Card, Badge, Table, Divider } from 'antd';
import DescriptionList from 'components/DescriptionList';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import PageHeaderLayout from '@/layouts/PageHeaderLayout';
import styles from './BasicProfile.less';
const { Description } = DescriptionList;
......
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