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

永远加载不完的进度条 #1067

Closed
3 tasks done
llleixx opened this issue Feb 20, 2024 · 2 comments
Closed
3 tasks done

永远加载不完的进度条 #1067

llleixx opened this issue Feb 20, 2024 · 2 comments
Labels
🐛 bug Unexpected problem or unintended behavior

Comments

@llleixx
Copy link
Contributor

llleixx commented Feb 20, 2024

请确认

  • 是当前最新的 Release 版本
  • 本地 hexo clean && hexo s,并且清除浏览器缓存,仍可复现
  • 已经排除是其他 Hexo 插件影响

Bug 描述

NProgress bar 始终加载中。

#994

复现步骤

个人博客

可能与网络有关。

截图

image

@llleixx llleixx added the 🐛 bug Unexpected problem or unintended behavior label Feb 20, 2024
@llleixx
Copy link
Contributor Author

llleixx commented Feb 20, 2024

NProgress 官网 所示,如果调用了 NProgress.done() 之后再调用 NProgress.inc() 将重新唤起进度条。

我发现这是因为 load 事件触发后,events.js 中再次调用了 NProgress.inc 所致。

利用 NProgress.done() 执行后,NProgress.status 变为 null 这一点可以修复这个 bug。

如果可以的话,我会提一个 PR。

@zkqiang
Copy link
Member

zkqiang commented Mar 8, 2024

非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants