目录跳转问题

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

View File

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