From 55f3bc62011b4e8b15ab6c9af7fb3776cc6eb596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Mon, 27 Sep 2021 12:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/CoderRootCommit.js | 4 ++-- src/forge/Main/Diff.jsx | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/forge/Main/CoderRootCommit.js b/src/forge/Main/CoderRootCommit.js index 50f2fb6a..7f0b270b 100644 --- a/src/forge/Main/CoderRootCommit.js +++ b/src/forge/Main/CoderRootCommit.js @@ -157,7 +157,7 @@ class CoderRootCommit extends Component{
-
{item.message}
+
{item.message}

sha - {truncateCommitId(`${item.sha}`)} + {truncateCommitId(`${item.sha}`)} diff --git a/src/forge/Main/Diff.jsx b/src/forge/Main/Diff.jsx index 1b23d53e..8da71238 100644 --- a/src/forge/Main/Diff.jsx +++ b/src/forge/Main/Diff.jsx @@ -43,14 +43,13 @@ const Infos = styled.div` } `; //提交详情页 -export default (props) => { - const { match , history } = props; +export default ( match , history, location) => { const [data, setData] = useState({undefined}); const [commit, setCommit] = useState(undefined); const [parents, setParents] = useState(undefined); const [committer, setCommitter] = useState(undefined); const [isSpin, setIsSpin] = useState(true); - console.log('----------', match , history, props); + console.log('----------', location && location.query && location.query.commitpage); const { sha , projectsId, owner, branchName } = match.params; useEffect(() => { if (projectsId && owner && sha) {