diff --git a/src/forge/Main/Diff.jsx b/src/forge/Main/Diff.jsx index b066aaac..1b23d53e 100644 --- a/src/forge/Main/Diff.jsx +++ b/src/forge/Main/Diff.jsx @@ -43,13 +43,14 @@ const Infos = styled.div` } `; //提交详情页 -export default ({ match , history }) => { +export default (props) => { + const { match , history } = props; 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); + console.log('----------', match , history, props); const { sha , projectsId, owner, branchName } = match.params; useEffect(() => { if (projectsId && owner && sha) {