From 5b2198ce4c56502821757059b288cdb83ce001b4 Mon Sep 17 00:00:00 2001 From: caishi Date: Thu, 30 Sep 2021 19:58:03 +0800 Subject: [PATCH] fix issue --- src/forge/Main/CoderRootCommit.js | 1 + src/forge/Main/tag/Index.jsx | 4 ++-- src/forge/Main/tree/Index.jsx | 10 +++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/forge/Main/CoderRootCommit.js b/src/forge/Main/CoderRootCommit.js index 8cfa73203..ab1a0fc36 100644 --- a/src/forge/Main/CoderRootCommit.js +++ b/src/forge/Main/CoderRootCommit.js @@ -128,6 +128,7 @@ class CoderRootCommit extends Component{ const { commitDatas , dataCount , limit , page , isSpining , branchList } = this.state; const { projectDetail, commit_class , defaultBranch } = this.props; const { projectsId , owner , branchName } = this.props.match.params; + console.log(branchName); let branch = returnbar(branchName || defaultBranch); return( diff --git a/src/forge/Main/tag/Index.jsx b/src/forge/Main/tag/Index.jsx index d5c2593e9..5e296e131 100644 --- a/src/forge/Main/tag/Index.jsx +++ b/src/forge/Main/tag/Index.jsx @@ -38,14 +38,14 @@ function Tags(props) { }, { title:"创建时间", - dataIndex:"time", + dataIndex:"time_ago", key:2, ellipsis:true, render:(txt,item)=>{ return ( {item.commit && item.commit.name} - 创建于{item.commit && item.commit.time_ago} + 创建于{txt} ) } diff --git a/src/forge/Main/tree/Index.jsx b/src/forge/Main/tree/Index.jsx index 9324cd596..b8d3ef625 100644 --- a/src/forge/Main/tree/Index.jsx +++ b/src/forge/Main/tree/Index.jsx @@ -63,7 +63,11 @@ function Index(props) {
{i.name}
- + { + + + + } {last_commit && last_commit.committer && last_commit.committer.name} 更新于{last_commit && last_commit.time_from_now}
@@ -72,7 +76,7 @@ function Index(props) {
sha - {truncateCommitId(last_commit && last_commit.sha)} + {truncateCommitId(last_commit && last_commit.sha)} @@ -81,7 +85,7 @@ function Index(props) {
{ (isManager || isDeveloper) && (projectDetail && projectDetail.type!==2) && - + 合并请求 + + 合并请求 } 下载