umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.61k stars 1.18k forks source link

bug: 页面的辅助菜单锚点如果同一个锚点点击两次就会回到网站首页 #2200

Open CaptainJon opened 2 months ago

CaptainJon commented 2 months ago

Version

2.2.1

OS Version

Windows 11 latest

Node.js Version

16.20.2

Browser Version

Google latest

Link to minimal reproduction

no

Steps to reproduce

如题 image

What is expected?

点击锚点多次应该停留在当前位置

What is actually happening?

点击同一个锚点两次会回到网站首页

Any additional comments? (optional)

No response