Commit bb831ee4 authored by 张烨's avatar 张烨

style: fix lint

parent 7e3bce54
import React from 'react'; // import React from 'react';
const AuthorizedRoute = ({ const AuthorizedRoute = ({
component, component,
render, render,
authority, authority,
redirectPath, redirectPath,
// eslint-disable-next-line no-unused-vars
...rest ...rest
}) => {}; }) => {};
......
...@@ -24,7 +24,7 @@ export default class PromiseRender extends React.Component { ...@@ -24,7 +24,7 @@ export default class PromiseRender extends React.Component {
} }
setRenderComponent(props) { setRenderComponent(props) {
const on = this.checkIsInstantiation(props.ok); const ok = this.checkIsInstantiation(props.ok);
const error = this.checkIsInstantiation(props.error); const error = this.checkIsInstantiation(props.error);
props.promise props.promise
.then(() => { .then(() => {
......
import React, { useState, useEffect } from 'react'; import React, { useState } from 'react';
import axios from 'axios';
import { matchRoutes, renderRoutes } from 'react-router-config'; import { matchRoutes, renderRoutes } from 'react-router-config';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { GithubOutlined } from '@ant-design/icons';
import ProLayout, { DefaultFooter } from '@ant-design/pro-layout'; import ProLayout, { DefaultFooter } from '@ant-design/pro-layout';
import logo from '../assets/logo.svg'; import logo from '../assets/logo.svg';
...@@ -22,27 +20,8 @@ import RightContent from '../components/GlobalHeader/RightContent'; ...@@ -22,27 +20,8 @@ import RightContent from '../components/GlobalHeader/RightContent';
const defaultFooterDom = ( const defaultFooterDom = (
<DefaultFooter <DefaultFooter
copyright={`${new Date().getFullYear()} 蚂蚁金服体验技术部出品`} copyright={`${new Date().getFullYear()} 熊猫智慧水务技术委员会出品`}
links={[ links={[]}
{
key: 'Ant Design Pro',
title: 'Ant Design Pro',
href: 'https://pro.ant.design',
blankTarget: true,
},
{
key: 'github',
title: <GithubOutlined />,
href: 'https://github.com/ant-design/ant-design-pro',
blankTarget: true,
},
{
key: 'Ant Design',
title: 'Ant Design',
href: 'https://ant.design',
blankTarget: true,
},
]}
/> />
); );
...@@ -128,7 +107,7 @@ const BasicMenu = [ ...@@ -128,7 +107,7 @@ const BasicMenu = [
}, },
]; ];
const userMode = localStorage.getItem('userMode'); const userMode = localStorage.getItem('userMode');
if (userMode == 'common') { if (userMode === 'common') {
BasicMenu.shift(); BasicMenu.shift();
} }
......
...@@ -21,7 +21,7 @@ const UserLayout = props => { ...@@ -21,7 +21,7 @@ const UserLayout = props => {
// const { formatMessage } = useIntl(); // const { formatMessage } = useIntl();
const { breadcrumb } = getMenuData(route.routes); const { breadcrumb } = getMenuData(route.routes);
const title = getPageTitle({ const title = getPageTitle({
pathname: location.pathname, pathname: window.location.pathname,
// formatMessage, // formatMessage,
breadcrumb, breadcrumb,
...props, ...props,
......
This diff is collapsed.
...@@ -3,6 +3,9 @@ import Login from '../pages/user/login'; ...@@ -3,6 +3,9 @@ import Login from '../pages/user/login';
import BasicLayout from '../layouts/BasicLayout'; import BasicLayout from '../layouts/BasicLayout';
import Welcome from '../pages/Welcome'; import Welcome from '../pages/Welcome';
import RequestTest from '../pages/testPages/request'; import RequestTest from '../pages/testPages/request';
import InitDataBase from '../pages/database/InitDataBase';
import ManagementDataBase from '../pages/database/ManagementDataBase';
export default { export default {
routes: [ routes: [
{ {
...@@ -34,12 +37,12 @@ export default { ...@@ -34,12 +37,12 @@ export default {
{ {
path: '/dbm/dbInit', path: '/dbm/dbInit',
name: '数据库初始化', name: '数据库初始化',
component: Welcome, component: InitDataBase,
}, },
{ {
path: '/dbm/dbsm', path: '/dbm/dbsm',
name: '数据库标准化管理', name: '数据库标准化管理',
component: Welcome, component: ManagementDataBase,
}, },
{ {
path: '/ou/orgList', path: '/ou/orgList',
......
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