forked from Gitlink/forgeplus-react
This commit is contained in:
parent
44d529e867
commit
3b3cc7f639
|
@ -43,15 +43,14 @@ const Infos = styled.div`
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
//提交详情页
|
//提交详情页
|
||||||
export default ( location) => {
|
export default (props) => {
|
||||||
console.log(match);
|
console.log(props);
|
||||||
const {match , history } = props;
|
const {match , history } = props;
|
||||||
const [data, setData] = useState({undefined});
|
const [data, setData] = useState({undefined});
|
||||||
const [commit, setCommit] = useState(undefined);
|
const [commit, setCommit] = useState(undefined);
|
||||||
const [parents, setParents] = useState(undefined);
|
const [parents, setParents] = useState(undefined);
|
||||||
const [committer, setCommitter] = useState(undefined);
|
const [committer, setCommitter] = useState(undefined);
|
||||||
const [isSpin, setIsSpin] = useState(true);
|
const [isSpin, setIsSpin] = useState(true);
|
||||||
console.log('----------', location && location.query && location.query.commitpage);
|
|
||||||
const { sha , projectsId, owner, branchName } = match && match.params;
|
const { sha , projectsId, owner, branchName } = match && match.params;
|
||||||
console.log(sha);
|
console.log(sha);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue