diff --git a/src/forge/Information/Pages/homepage/component/specialProjects.jsx b/src/forge/Information/Pages/homepage/component/specialProjects.jsx index d4cb4aff7..41f59a0b7 100644 --- a/src/forge/Information/Pages/homepage/component/specialProjects.jsx +++ b/src/forge/Information/Pages/homepage/component/specialProjects.jsx @@ -64,25 +64,27 @@ function SpecialProjects({data, subTitle}) { setSelectedItem(selectedItem === id ? null : id); }; - const list = (title, table1, table2, list)=>{ + const list = (title, table1, table2,table3, list)=>{ return !!list.length &&

{title}

- {table1} - {table2} + {table1} + {table2} + {table3} {list.map(item=>{ - const {author} = item; + const {author, company} = item; const detail = item.relevancyObject; const {name, createUser, id} = detail return - + {title === "论文" ? : title === "专利" ? : } {name} - {author} + {author} + {company} })} @@ -151,8 +153,8 @@ function SpecialProjects({data, subTitle}) {

摘要:{description}

- {list("论文", "论文标题", "作者", PAPER)} - {list("专利", "专利标题", "作者", PATENT)} + {list("论文", "论文标题", "作者", "单位", PAPER)} + {list("专利", "专利标题", "作者", "单位", PATENT)} {list2("开源项目", "项目名称", "参与者", PROJECT)} {!PAPER.length && !PATENT.length && !PROJECT.length && }
diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 1ab7573c7..5ff6f0ef2 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -26,10 +26,14 @@ import RenderHtml from '../../components/render-html'; import Loadable from 'react-loadable'; import Loading from '../../Loading'; import ProjectPortrait from '../Component/projectPortrait'; -// import ProjectCompass from '../Component/projectCompass'; import imNoneImg from './img/importNone.png'; import moment from 'moment'; +const ProjectCompass = Loadable({ + loader: () => import('../Component/projectCompass'), + loading: Loading, +}) + const format = "YYYY-MM-DD HH:mm" const CoderRootFileDetail = Loadable({ loader: () => import("./CoderRootFileDetail"), @@ -695,7 +699,7 @@ function CoderDepot(props){ />
} - {/* {__CLIENT__ && } */} + {__CLIENT__ && } {/* 贡献者 */} {mirror_status ===0 && } {/* 项目画像: 导入/fork项目不展示, open_portrait后台配置是否开启仓库 */}