From ef3a9f5eff01c85f76f41207dd8fa18fa6ed2547 Mon Sep 17 00:00:00 2001 From: zhangminghua Date: Wed, 8 Mar 2023 11:03:17 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E5=A2=9E=E5=8A=A0=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=AE=A1=E7=90=86=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/app.js | 21 ++++++++++--------- .../layout/containers/layout/breadcrumb.js | 4 ++-- .../src/layout/containers/layout/index.js | 2 +- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/web/client/src/app.js b/web/client/src/app.js index 82e4578..fd452f7 100644 --- a/web/client/src/app.js +++ b/web/client/src/app.js @@ -4,19 +4,20 @@ import React, { useEffect } from 'react'; import Layout from './layout'; import Auth from './sections/auth'; import homePage from './sections/homePage'; +import MetadataManagement from './sections/metadataManagement'; const App = props => { - const { projectName } = props + const { projectName } = props - useEffect(() => { - document.title = projectName; - }, []) + useEffect(() => { + document.title = projectName; + }, []) - return ( - - ) + return ( + + ) } diff --git a/web/client/src/layout/containers/layout/breadcrumb.js b/web/client/src/layout/containers/layout/breadcrumb.js index d0459a4..80b4f6c 100644 --- a/web/client/src/layout/containers/layout/breadcrumb.js +++ b/web/client/src/layout/containers/layout/breadcrumb.js @@ -11,7 +11,7 @@ const Breadcrumbs = (props) => { return ( { - breadcrumbs.map((bc, index) => { + breadcrumbs.filter(bc => bc.key != '/metadataManagement/latestMetadata/detail').map((bc, index) => { return ( { @@ -34,7 +34,7 @@ const Breadcrumbs = (props) => { ) }); - + return ( ); diff --git a/web/client/src/layout/containers/layout/index.js b/web/client/src/layout/containers/layout/index.js index add40ff..518c2a2 100644 --- a/web/client/src/layout/containers/layout/index.js +++ b/web/client/src/layout/containers/layout/index.js @@ -115,7 +115,7 @@ const LayoutContainer = props => { ) } -function mapStateToProps (state) { +function mapStateToProps(state) { const { global, auth, ajaxResponse } = state; return { title: global.title,