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

fix: toc lost bug when page is full reload #1830

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

PeachScript
Copy link
Member

🤔 这个变动的性质是?/ What is the nature of this change?

  • 新特性提交 / New feature
  • bug 修复 / Fix bug
  • 样式优化 / Style optimization
  • 代码风格优化 / Code style optimization
  • 性能优化 / Performance optimization
  • 构建优化 / Build optimization
  • 网站、文档、Demo 改进 / Website, documentation, demo improvements
  • 重构代码或样式 / Refactor code or style
  • 测试相关 / Test related
  • 其他 / Other

🔗 相关 Issue / Related Issue

Close #1816

💡 需求背景和解决方案 / Background or solution

修复页面整体重新加载(例如刷新浏览器标签页)时,toc 不展示的问题,原因是 #1793 改了 loading 状态更新的逻辑,非前端路由切换不再更新 loading 状态,所以默认的 loading 状态需要从 true 调整为 false

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English Fix toc lost bug when page is full reload
🇨🇳 Chinese 修复页面整体重新加载时 TOC 丢失的问题

@vercel
Copy link

vercel bot commented Aug 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dumi ✅ Ready (Inspect) Visit Preview Aug 10, 2023 5:33am

@PeachScript PeachScript merged commit f84b043 into master Aug 10, 2023
9 checks passed
@PeachScript PeachScript deleted the hotfix/toc-lost-when-full-load branch August 10, 2023 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: ^2.2.4toc: content 异常!
1 participant