diff --git a/src/forge/users/Infos.js b/src/forge/users/Infos.js index 63d55cf0c..7a454c207 100644 --- a/src/forge/users/Infos.js +++ b/src/forge/users/Infos.js @@ -306,7 +306,7 @@ class Infos extends Component { } - {current_user && user && user.login === current_user.login ? ( + {/* {current_user && user && user.login === current_user.login ? (
  • @@ -371,14 +371,6 @@ class Infos extends Component { CI服务

  • - {/*
  • this.change_devops_type("CDService")}> -

    - CD服务 - - {user && user.common_projects_count} - -

    -
  • */}
    } @@ -396,7 +388,7 @@ class Infos extends Component {

    - + */}
    { !route_type && menuKey && diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index 1d0a983ea..508c13355 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -69,6 +69,7 @@ export function TPMIndexHOC(WrappedComponent) { ///请求定制化的信息 this.getAppdata(); + window.scrollTo(0,0); } @@ -267,12 +268,14 @@ export function TPMIndexHOC(WrappedComponent) { >
    {!publicNav &&
    } - { - current_user && - this.initCommonState(user)} - {...this.props} {...this.state} {...common} > - - } +
    + { + current_user && + this.initCommonState(user)} + {...this.props} {...this.state} {...common} > + + } +