forked from Gitlink/forgeplus-react
云际计算专区首页初始化
This commit is contained in:
parent
454e8b5ecc
commit
1ebab3f9f4
|
|
@ -0,0 +1,9 @@
|
|||
import React, { } from 'react';
|
||||
import './index.scss';
|
||||
|
||||
function HomePage(props) {
|
||||
return (
|
||||
<div>云际计算社区首页(自定义)</div>
|
||||
)
|
||||
}
|
||||
export default HomePage;
|
||||
|
|
@ -85,6 +85,11 @@ const Help = Loadable({
|
|||
loading: Loading,
|
||||
});
|
||||
|
||||
const HomePageByJCC = Loadable({
|
||||
loader : () => import("./Pages/JCC/homePage"),
|
||||
loading : Loading,
|
||||
});
|
||||
|
||||
function Index(props){
|
||||
const [ data , setData ] = useState(undefined);
|
||||
const [ adminUrl , setAdminUrl ] = useState(undefined);
|
||||
|
|
@ -249,8 +254,10 @@ function Index(props){
|
|||
<Route
|
||||
path="/zone/:deptId"
|
||||
render={(p) => (
|
||||
deptId==="CCF-ODC"?<HeaderPageCCF {...props} {...p} data={data} id={id} temp={ temp } />:
|
||||
temp === tempEnum.zone ? <HeaderPage {...props} {...p} data={data} id={id} temp={ temp }/> : <HeaderPageZone1 {...props} {...p} data={data} id={id} temp={ temp }/>
|
||||
deptId==="CCF-ODC" ? <HeaderPageCCF {...props} {...p} data={data} id={id} temp={ temp } />:
|
||||
deptId === "JCC" ? <HomePageByJCC {...props} {...p} data={data} id={id}/>:
|
||||
temp === tempEnum.zone ? <HeaderPage {...props} {...p} data={data} id={id} temp={ temp }/>:
|
||||
<HeaderPageZone1 {...props} {...p} data={data} id={id} temp={ temp }/>
|
||||
)}
|
||||
></Route>
|
||||
</Switch>
|
||||
|
|
|
|||
Loading…
Reference in New Issue