diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js
index 6f7e3eda1..08363549d 100644
--- a/src/forge/Main/CoderRootDirectory.js
+++ b/src/forge/Main/CoderRootDirectory.js
@@ -28,8 +28,6 @@ function getPathUrl(array,index){
return str.substr(1);
}
}
-
-
class CoderRootDirectory extends Component {
constructor(props) {
super(props);
@@ -92,7 +90,6 @@ class CoderRootDirectory extends Component {
this.setState({
filePath: url,
});
- console.log('filepath',url);
this.getFileDetail(url);
} else {
const { branch } = this.state;
@@ -368,6 +365,7 @@ class CoderRootDirectory extends Component {
}
title = (branchLastCommit,lastCommitAuthor) => {
+ console.log(branchLastCommit)
if (branchLastCommit) {
return (
diff --git a/src/modules/page/layers/ImageLayer.js b/src/modules/page/layers/ImageLayer.js
index c360e9a9e..e58cabf31 100644
--- a/src/modules/page/layers/ImageLayer.js
+++ b/src/modules/page/layers/ImageLayer.js
@@ -1,10 +1,9 @@
import React, { Component } from 'react';
import ReactDOM from 'react-dom'
import { Button, Icon } from 'antd';
-import './TaskResultLayer.css'
+import './TaskResultLayer.css';
class ImageLayer extends Component {
-
constructor(props) {
super(props);
this.state = {
@@ -21,13 +20,13 @@ class ImageLayer extends Component {
});
}
-
render() {
let { showImage, imageSrc, } = this.props;
return ReactDOM.createPortal(
{showImage ?
+
this.props.onImageLayerClose()}>
-
-
:
diff --git a/src/modules/page/layers/ImageLayerOfCommentHOC.js b/src/modules/page/layers/ImageLayerOfCommentHOC.js
index 7745c2d6b..c7810a466 100644
--- a/src/modules/page/layers/ImageLayerOfCommentHOC.js
+++ b/src/modules/page/layers/ImageLayerOfCommentHOC.js
@@ -16,7 +16,6 @@ export function ImageLayerOfCommentHOC(options = {}) {
}
onDelegateClick = (event) => {
- console.log("imgclick",event);
const imageSrc = event.target.src || event.target.getAttribute('src') || event.target.getAttribute('href')
// 判断imageSrc是否是图片
const fileName = event.target.innerHTML.trim()
diff --git a/src/modules/page/layers/TaskResultLayer.css b/src/modules/page/layers/TaskResultLayer.css
index 962aed0db..70653ee15 100644
--- a/src/modules/page/layers/TaskResultLayer.css
+++ b/src/modules/page/layers/TaskResultLayer.css
@@ -40,8 +40,17 @@
justify-content: center;
align-items: center;
display: -webkit-flex;
- height: 90%;
+ height: 100%;
text-align: center;
+ position: absolute;
+ width:100%;
+ z-index: 4;
+}
+.closePanel{
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ z-index: 5;
}
.passImg{
max-width: 86%;