目录跳转问题

This commit is contained in:
hucong 2021-11-05 19:03:24 +08:00
parent 010edf3cb2
commit e04fb11194
2 changed files with 2 additions and 3 deletions

View File

@ -41,7 +41,7 @@ function CoderDepotReadme({ operate , history , readme , ChangeFile }){
return(
<div className="commonBox readBox" id="readme">
<Anchor offsetTop={70} targetOffset={160}>
<Anchor offsetTop={70}>
<div className="commonBox-title boxTitle">
<AlignCenter>
<Dropdown overlay={menu()} trigger={['hover']} overlayClassName="menuslist">
@ -64,7 +64,6 @@ function CoderDepotReadme({ operate , history , readme , ChangeFile }){
</div>
</Anchor>
{
content &&
<div className="commonBox-info">
<RenderHtml className="break_word_comments imageLayerParent" value={content} url={history.location}/>
</div>

View File

@ -36,7 +36,7 @@ function ReadmeCatelogue({ menuList , hash }) {
{
menu && menu.length>0?
<div className="anchorBox">
<Anchor affix={false} onChange={onChange} offsetTop={140}>
<Anchor affix={false} onChange={onChange} offsetTop={150}>
{
menu.map((item,key)=>{
return(