From 5e64ce0d40a8d96d11631a82b7156fbe653d7ed3 Mon Sep 17 00:00:00 2001
From: caishi <1149225589@qq.com>
Date: Tue, 12 Apr 2022 14:19:51 +0800
Subject: [PATCH] merge to bd7e1b
---
src/forge/users/Infos.js | 12 ++----------
src/modules/tpm/TPMIndexHOC.js | 15 +++++++++------
2 files changed, 11 insertions(+), 16 deletions(-)
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} >
+
+ }
+