整体页面设置最低高度

This commit is contained in:
caishi 2021-11-02 14:56:53 +08:00
parent 64f946d51c
commit bd7e1b2742
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,7 @@ export function TPMIndexHOC(WrappedComponent) {
///请求定制化的信息 ///请求定制化的信息
this.getAppdata(); this.getAppdata();
window.scrollTo(0,0);
} }
@ -221,12 +222,14 @@ export function TPMIndexHOC(WrappedComponent) {
> >
<div className="newContainer newContainers"> <div className="newContainer newContainers">
<div style={{height:"70px"}}></div> <div style={{height:"70px"}}></div>
<div style={{minHeight:"60vh"}}>
{ {
current_user && current_user &&
<WrappedComponent initCommonState={(user) => this.initCommonState(user)} <WrappedComponent initCommonState={(user) => this.initCommonState(user)}
{...this.props} {...this.state} {...common} > {...this.props} {...this.state} {...common} >
</WrappedComponent> </WrappedComponent>
} }
</div>
</div> </div>
</Spin> </Spin>
<NewFooter {...this.state} {...this.props} /> <NewFooter {...this.state} {...this.props} />