提交页面的复制commitId功能

This commit is contained in:
谢思 2021-09-28 22:39:47 +08:00
parent fc26e362d0
commit 68b1e0c704
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class CoderRootCommit extends Component{
<span className="treecopy-cont shadow">
<img src={Tree} alt="sha" width={"16px"}/>
<Link to={{pathname:`/${owner}/${projectsId}/commits/${truncateCommitId(`${item.sha}`)}/${branch}`,query:{page:page}}}>{truncateCommitId(`${item.sha}`)}</Link>
<input type="text" id={`value${k}`} value={`${truncateCommitId(`${item.sha}`)}`} disabled/>
<input type="text" id={`value${k}`} value={`${truncateCommitId(`${item.sha}`)}`}/>
</span>
<CopyTool beforeText="复制commit id" afterText="复制成功" inputId={`value${k}`}/>
</div>