代码库二级页面md文件定位处理

This commit is contained in:
hucong 2021-10-11 18:07:55 +08:00
parent 825cee4eac
commit 8e1fb80f96
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ class CoderRootFileDetail extends Component {
}
componentDidMount = () => {
window.scrollTo(0, 0);
const { detail , mdFlag } = this.props;
this.setState({
value: detail.content,
@ -214,7 +215,7 @@ class CoderRootFileDetail extends Component {
const Option = Select.Option;
return (
<React.Fragment>
<Anchor className="griditemAnchor" offsetTop={70} targetOffset={160}>
<Anchor className="griditemAnchor" offsetTop={70}>
<div className="griditemCate">
{
md && readOnly &&