Commit c8248e12 authored by 崔佳豪's avatar 崔佳豪

perf: 引导页样式优化

parent 3787be88
Pipeline #48825 skipped with stages
......@@ -83,7 +83,7 @@ const BootPage = props => {
// props.instance && props.instance.getUserInfoAndConfig('', true, type);
loginAction && loginAction.getUserInfoAndConfig('', true, type);
},
[loginAction, props.global, props.instance],
[loginAction, props.global.token, props.instance],
);
useEffect(() => {
// eslint-disable-next-line no-use-before-define
......@@ -114,8 +114,8 @@ const BootPage = props => {
}, [loginAction.events, props]);
const renderIndustr = useMemo(
() => renderIndustries(props.global, handlePage),
[handlePage, props.global],
);
[handlePage, props.global.token],
);
const intl = useIntl();
const toOMSUsingAnalysis = e => {
......@@ -164,6 +164,9 @@ const BootPage = props => {
'animate__animated',
'duration-500ms',
)}
style={{
width: `${ scale < 1 ? 1280 : Math.ceil(1280 * scale)}px`,
}}
>
<ul
className={classNames(styles.bootPageUl, 'animate__animated')}
......
......@@ -156,6 +156,12 @@
}
}
:global {
.@{ant-prefix}-spin-nested-loading,
.@{ant-prefix}-spin-container {
height: 100%;
}
}
}
@media screen and (max-width: 1440px) {
......
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