forked from Gitlink/forgeplus-react
This commit is contained in:
parent
3b3cc7f639
commit
73ca563a0f
|
@ -44,15 +44,13 @@ const Infos = styled.div`
|
||||||
`;
|
`;
|
||||||
//提交详情页
|
//提交详情页
|
||||||
export default (props) => {
|
export default (props) => {
|
||||||
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);
|
||||||
const { sha , projectsId, owner, branchName } = match && match.params;
|
const { sha , projectsId, owner, branchName } = match.params;
|
||||||
console.log(sha);
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (projectsId && owner && sha) {
|
if (projectsId && owner && sha) {
|
||||||
const url = `/${owner}/${projectsId}/commits/${sha}.json`;
|
const url = `/${owner}/${projectsId}/commits/${sha}.json`;
|
||||||
|
|
|
@ -243,7 +243,7 @@
|
||||||
padding-right: 40px;
|
padding-right: 40px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.ant-select-auto-complete.ant-select .ant-input:hover,.ant-input:hover {
|
.ant-select-auto-complete.ant-select .ant-input:hover,.ant-input:hover {
|
||||||
border-color: rgba(153, 153, 153, 0.5);;
|
border-color: rgba(153, 153, 153, 0.8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.versionTips{
|
.versionTips{
|
||||||
|
|
Loading…
Reference in New Issue