diff --git a/src/forge/DevOps/Index.jsx b/src/forge/DevOps/Index.jsx index 424a23c43..dc3ad0aa9 100644 --- a/src/forge/DevOps/Index.jsx +++ b/src/forge/DevOps/Index.jsx @@ -7,7 +7,7 @@ import Loadable from 'react-loadable'; import Loading from '../../Loading'; const About = Loadable({ - loader: () => import('./About'), + loader: () => import('./subIndex'), loading: Loading, }) const New = Loadable({ @@ -66,7 +66,8 @@ export default ((props)=>{ {/* 原本的两种合为一个 */} {return( p.location && p.location.state && p.location.state.open_devops?:)} + // (p) =>{return( p.location && p.location.state && p.location.state.open_devops?:)} + (p) =>{return()} } > diff --git a/src/forge/DevOps/subIndex.jsx b/src/forge/DevOps/subIndex.jsx new file mode 100644 index 000000000..b1471c335 --- /dev/null +++ b/src/forge/DevOps/subIndex.jsx @@ -0,0 +1,13 @@ +import React from 'react'; +import About from './About'; +import Dispose from './Dispose'; + +function SubIndex(props) { + return( + props && props.open_devops ? + + : + + ) +} +export default SubIndex; \ No newline at end of file diff --git a/src/forge/Main/sub/DetailBanner.jsx b/src/forge/Main/sub/DetailBanner.jsx index c344710b8..d215936f6 100644 --- a/src/forge/Main/sub/DetailBanner.jsx +++ b/src/forge/Main/sub/DetailBanner.jsx @@ -32,7 +32,7 @@ function DetailBanner({ history,list , owner , projectsId ,showNotification , ur } }).catch(error=>{}) } - +console.log("detail:",open_devops); return(
setVisible(false)} name={projectDetail && projectDetail.name} onSuccess={onSuccess}/> diff --git a/src/forge/Team/ListItem.jsx b/src/forge/Team/ListItem.jsx index ab9d64f27..f372d2565 100644 --- a/src/forge/Team/ListItem.jsx +++ b/src/forge/Team/ListItem.jsx @@ -6,8 +6,9 @@ function ListItem({item,key,OIdentifier}) { return(

- + {item.name} + {!item.is_public && 私有 } { item.forked_from_project_id && } { item.type && item.type === 2 ?