Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 页面 hash 跳转失效 #670

Closed
clark-t opened this issue Aug 6, 2019 · 1 comment
Closed

[BUG] 页面 hash 跳转失效 #670

clark-t opened this issue Aug 6, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@clark-t
Copy link
Contributor

clark-t commented Aug 6, 2019

BUG 描述
比如官网的某篇文章:

https://www.mipengine.org/v2/docs/getting-start/start-writing-first-mip.html

点击左侧的页内锚点之后,页面不会滚动到对应 id 的元素,并且 hash 会不断地以 & 的方式不断拼接到 URL 上,这应该是上周引入的线上 BUG 需尽早修复。

复现步骤
重新复现 Bug 的步骤

  1. https://www.mipengine.org/v2/docs/getting-start/start-writing-first-mip.html
  2. 点击左侧 『创建 HTML 文件』
  3. 点击左侧 『添加样式』
  4. 此时页面不会滚动,并且 URL 拼接了多个 hash

期望结果

  1. hash 在点击的时候应该替换而不是不断拼接
  2. 点击时应触发滚动

截图
如果合适,添加问题相关的截图

环境及版本信息:

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • 浏览器 Version [e.g. 64]
  • mip-cli 版本

其他信息
其他补充信息

@clark-t clark-t added the bug Something isn't working label Aug 6, 2019
@zoumiaojiang zoumiaojiang mentioned this issue Aug 7, 2019
6 tasks
@clark-t
Copy link
Contributor Author

clark-t commented Aug 9, 2019

done

@clark-t clark-t closed this as completed Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants