- {subFileType && parseInt(projectDetail.type) !== 2 && (isManager || isDeveloper) && (
+ {subFileType && (projectDetail && parseInt(projectDetail.type)) !== 2 && (isManager || isDeveloper) && (
)}
@@ -519,7 +510,7 @@ class CoderRootDirectory extends Component {
title()}
+ title={() => this.title(branchLastCommit,lastCommitAuthor)}
>
)}
{/* 子目录列表、文件 */}
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index bda4b9df..5dbc0bf9 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -1,4 +1,4 @@
-import React, { Component, Fragment } from 'react';
+import React, { Component } from 'react';
import { Spin, Tooltip } from 'antd';
import { Link, Route, Switch } from 'react-router-dom';
import { Content } from '../Component/layout';
@@ -114,6 +114,10 @@ const TrendsIndex = Loadable({
loading: Loading,
})
+const DevIndex = Loadable({
+ loader: () => import('../DevOps/Index'),
+ loading: Loading,
+})
/**
* permission:Manager:管理员,Reporter:报告人员(只有读取权限),Developer:开发人员(除不能设置仓库信息外)
*/
@@ -419,7 +423,7 @@ class Detail extends Component {
代码库
- -1 && !(url.indexOf("Milepost") > 0 || url.indexOf("meilpost") > 0 || url.indexOf("tags") > 0)) ? "active" : ""}>
+ -1 && !(url.indexOf("Milepost") > 0 || url.indexOf("meilpost") > 0 || url.indexOf("tags") > 0)) ? "active" : ""}>
任务
{projectDetail && projectDetail.issues_count ? {projectDetail.issues_count} : ""}
@@ -434,20 +438,26 @@ class Detail extends Component {
}
- -1 || url.indexOf("meilpost") > -1) ? "active" : ""}>
+ -1 ? "active" : ""}>
+
+ 工作流
+ {/* {projectDetail && projectDetail.pull_requests_count ? {projectDetail.pull_requests_count} : ""} */}
+
+
+ -1 || url.indexOf("meilpost") > -1) ? "active" : ""}>
里程碑
{projectDetail && projectDetail.version_count && {projectDetail.version_count}}
- -1 ? "active" : ""}>
+ -1 ? "active" : ""}>
动态
{
isManager &&
- 0 ? "active" : ""}>仓库设置
+ 0 ? "active" : ""}>仓库设置
}
@@ -463,6 +473,12 @@ class Detail extends Component {
:
+ {/* 工作流 */}
+ ()
+ }
+ >
{/* 标签列表 */}
{show_message ? (
-
+
) : (
diff --git a/src/forge/Merge/merge.js b/src/forge/Merge/merge.js
index b306d700..6627679f 100644
--- a/src/forge/Merge/merge.js
+++ b/src/forge/Merge/merge.js
@@ -409,7 +409,7 @@ class merge extends Component {
{data && data.search_count && data.search_count > 0 ? (
-