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 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 (
<Layout
title={projectName}
sections={[homePage, Auth,]}
/>
)
return (
<Layout
title={projectName}
sections={[homePage, Auth, MetadataManagement]}
/>
)
}

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

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

Loading…
Cancel
Save