Commit 961413d5 authored by lihonglin's avatar lihonglin
parents b99b8c0b 5d52e345
Pipeline #57416 passed with stages
...@@ -660,4 +660,6 @@ ...@@ -660,4 +660,6 @@
padding-left: 30px!important; padding-left: 30px!important;
} }
:global(.@{ant-prefix}-pro-sider-fixed) {
\ No newline at end of file width: 100%;
}
\ No newline at end of file
...@@ -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,
...@@ -35,7 +34,7 @@ const BootPage = () => { ...@@ -35,7 +34,7 @@ const BootPage = () => {
setInfo({ first: false, loading: false, error: true }); setInfo({ first: false, loading: false, error: true });
return; return;
} }
if (data === null) notification.info({ message: '提示', duration: 3, description: '未配置系统引导页' }); // if (data === null) notification.info({ message: '提示', duration: 3, description: '未配置系统引导页' });
setTemplate(data); setTemplate(data);
setInfo({ first: false, loading: false, error: false }); setInfo({ first: false, loading: false, error: false });
}) })
...@@ -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