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

perf: 引导页样式优化

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