umijs / dumi

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

fix: page frontmatter lost from route meta #2129

Closed Jinbao1001 closed 5 months ago

Jinbao1001 commented 5 months ago

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

🔗 相关 Issue / Related Issue

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

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English miss metas frontmatter atomId
🇨🇳 Chinese atomId 丢失
vercel[bot] commented 5 months ago

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

Name Status Preview Comments Updated (UTC)
dumi ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 6:47am
andybuibui commented 5 months ago

hi @Jinbao1001 @PeachScript 改了下代码不知道能否满足需求, deepmerge 数组直接合并了,这里是数组是覆盖还是要合并? https://github.com/umijs/dumi/pull/2130

官网现在展示这个样子了。 image

PeachScript commented 5 months ago

这里是数组是覆盖还是要合并

覆盖合理的,对 route.meta 做了两次 deepmerge 导致的,后续版本会去掉这里的,感谢贡献 ❤️