This commit is contained in:
谢思 2021-09-27 13:43:47 +08:00
parent 44d529e867
commit 3b3cc7f639
1 changed files with 2 additions and 3 deletions

View File

@ -43,15 +43,14 @@ const Infos = styled.div`
}
`;
//
export default ( location) => {
console.log(match);
export default (props) => {
console.log(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('----------', location && location.query && location.query.commitpage);
const { sha , projectsId, owner, branchName } = match && match.params;
console.log(sha);
useEffect(() => {