This commit is contained in:
谢思 2021-09-27 15:43:48 +08:00
parent 3b3cc7f639
commit 73ca563a0f
2 changed files with 2 additions and 4 deletions

View File

@ -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`;

View File

@ -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{