diff --git a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js
index 943bf6f9e..6a628ef79 100644
--- a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js
+++ b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js
@@ -28,7 +28,8 @@ class Repository extends Component {
evaluationvisible:false,
ischecke:false,
ischeckevalue:"",
- trees:undefined
+ trees:undefined,
+ treesdelecttype:true
}
}
@@ -137,6 +138,9 @@ class Repository extends Component {
}})
.then((response) => {
if(response.data.status == 0) {
+ this.setState({
+ treesdelecttype:false
+ })
this.props.showNotification("删除成功")
if(gototype===1){
if(this.state.trees.length>1){
@@ -157,8 +161,10 @@ class Repository extends Component {
}
this.setState({
ischecke:false,
- ischeckevalue:""
+ ischeckevalue:"",
+ treesdelecttype:true
})
+
}
})
.catch(function (error) {
@@ -185,7 +191,7 @@ class Repository extends Component {
};
render() {
let { match, author, git_url, lastest_commit,repositoryLoading, commits,pathArray , TPMRightSectionData } = this.props;
- let{trees}= this.state;
+ let{trees,treesdelecttype}= this.state;
let matchpath =this.props.match.path;
let Repositoryflag ="";
@@ -411,10 +417,9 @@ class Repository extends Component {
onSelect={this.onSelectDirectoryTree}
onCheck={this.onCheck}
>
- { trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => {
+ {treesdelecttype===false || trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => {
return (
-