diff --git a/package.json b/package.json index 736bba88c..04142cb4d 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,7 @@ "scripts": { "start": "node --max_old_space_size=15360 scripts/start.js", "build": "cross-env NODE_ENV=production node --max_old_space_size=15360 scripts/build.js", - "test-build": "NODE_ENV=testBuild node --max_old_space_size=15360 scripts/build.js", + "test-build": "cross-env NODE_ENV=testBuild node --max_old_space_size=15360 scripts/build.js", "pre-build": "NODE_ENV=preBuild node --max_old_space_size=15360 scripts/build.js", "gen_stats": "NODE_ENV=production webpack --profile --config=./config/webpack.config.prod.js --json > stats.json", "ana": "webpack-bundle-analyzer ./stats.json", diff --git a/src/forge/Main/CoderRootCommit.js b/src/forge/Main/CoderRootCommit.js index 183523888..7b8eaa23a 100644 --- a/src/forge/Main/CoderRootCommit.js +++ b/src/forge/Main/CoderRootCommit.js @@ -29,12 +29,12 @@ function timeFormat(seconds) { //代码库--提交页面 class CoderRootCommit extends Component{ constructor(props){ - super(props) + super(props); this.state={ commitDatas:undefined, dataCount:undefined, limit:10, - page:1, + page: 1, isSpining:false, branchList:undefined } @@ -43,12 +43,8 @@ class CoderRootCommit extends Component{ componentDidMount=()=>{ this.Init(); this.getBranchs(); - // goBack - // addEventListener } - // componentde - // 获取分支列表 getBranchs=()=>{ const { projectsId , owner } = this.props.match.params; @@ -157,7 +153,7 @@ class CoderRootCommit extends Component{
- {truncateCommitId(`${item.sha}`)}
+ {truncateCommitId(`${item.sha}`)}
+ 附件: */} + {item.attachments && item.attachments.map((item)=>{ + return({item.title}) + })} + {/*
} */}