代码库编辑文件-切换到其它目录后要重新将编辑状态改为显示状态

This commit is contained in:
caishi 2021-04-25 17:46:38 +08:00
parent c32e215b27
commit fb41baacc1
2 changed files with 5 additions and 0 deletions

View File

@ -97,6 +97,7 @@ function CoderDepot(props){
setLastCommit(c && c.commit); setLastCommit(c && c.commit);
setLastCommitAuthor(c && c.committer); setLastCommitAuthor(c && c.committer);
setMainFlag(true); setMainFlag(true);
setReadOnly(true);
} }
setTimeout(function(){setIsSpin(false);},500); setTimeout(function(){setIsSpin(false);},500);
}).catch(error=>{setIsSpin(false);}) }).catch(error=>{setIsSpin(false);})
@ -138,6 +139,7 @@ function CoderDepot(props){
setLastCommit(c && c.commit); setLastCommit(c && c.commit);
setLastCommitAuthor(c && c.committer); setLastCommitAuthor(c && c.committer);
setMainFlag(false); setMainFlag(false);
setReadOnly(true);
} }
setTimeout(function(){setIsSpin(false);},500) setTimeout(function(){setIsSpin(false);},500)
}).catch(error=>{setIsSpin(false);}) }).catch(error=>{setIsSpin(false);})

View File

@ -223,6 +223,9 @@
.listtablebody{ .listtablebody{
li.listtablepath{ li.listtablepath{
a{color: #40a9ff;} a{color: #40a9ff;}
p{
margin-bottom: 0px!important;
}
} }
li{ li{
height: 42px; height: 42px;