Commit 5d52e345 authored by 崔佳豪's avatar 崔佳豪

fix: 修复引导页路由跳转

parent 0cef7935
Pipeline #57405 passed with stages
...@@ -13,8 +13,7 @@ const BootPageTemplate = { ...@@ -13,8 +13,7 @@ const BootPageTemplate = {
default: PandaBootPage, default: PandaBootPage,
}; };
const BootPage = props => {
const BootPage = () => {
const [info, setInfo] = useState({ const [info, setInfo] = useState({
first: true, first: true,
loading: true, loading: true,
...@@ -46,9 +45,7 @@ const BootPage = () => { ...@@ -46,9 +45,7 @@ const BootPage = () => {
}, []); }, []);
return ( return (
<SecurityLayout> <SecurityLayout>{info.loading ? <Spin /> : info.error ? <Empty /> : <RenderComponent {...props} />}</SecurityLayout>
{ info.loading ? <Spin/> : info.error ? <Empty/> : <RenderComponent/> }
</SecurityLayout>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment