云际计算专区首页初始化

This commit is contained in:
谢思 2024-01-09 11:27:18 +08:00
parent 454e8b5ecc
commit 1ebab3f9f4
3 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,9 @@
import React, { } from 'react';
import './index.scss';
function HomePage(props) {
return (
<div>云际计算社区首页自定义</div>
)
}
export default HomePage;

View File

@ -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>