Browse Source

* 增加元数据管理框架

master
zmh 2 years ago
parent
commit
ef3a9f5eff
  1. 21
      web/client/src/app.js
  2. 2
      web/client/src/layout/containers/layout/breadcrumb.js
  3. 2
      web/client/src/layout/containers/layout/index.js

21
web/client/src/app.js

@ -4,19 +4,20 @@ import React, { useEffect } from 'react';
import Layout from './layout'; import Layout from './layout';
import Auth from './sections/auth'; import Auth from './sections/auth';
import homePage from './sections/homePage'; import homePage from './sections/homePage';
import MetadataManagement from './sections/metadataManagement';
const App = props => { const App = props => {
const { projectName } = props const { projectName } = props
useEffect(() => { useEffect(() => {
document.title = projectName; document.title = projectName;
}, []) }, [])
return ( return (
<Layout <Layout
title={projectName} title={projectName}
sections={[homePage, Auth,]} sections={[homePage, Auth, MetadataManagement]}
/> />
) )
} }

2
web/client/src/layout/containers/layout/breadcrumb.js

@ -11,7 +11,7 @@ const Breadcrumbs = (props) => {
return ( return (
<Breadcrumb separator="/" style={{ height: 25 }}> <Breadcrumb separator="/" style={{ height: 25 }}>
{ {
breadcrumbs.map((bc, index) => { breadcrumbs.filter(bc => bc.key != '/metadataManagement/latestMetadata/detail').map((bc, index) => {
return ( return (
<Breadcrumb.Item key={index}> <Breadcrumb.Item key={index}>
{ {

2
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; const { global, auth, ajaxResponse } = state;
return { return {
title: global.title, title: global.title,

Loading…
Cancel
Save