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

refactor: 更新AppFooter.vue组件 #408

Merged
merged 3 commits into from
Sep 11, 2024
Merged

Conversation

Leetfs
Copy link
Member

@Leetfs Leetfs commented Sep 9, 2024

对AppFooter.vue组件进行了重构,添加了在 Frontmatter 中隐藏 GitChangelog 功能。

调用方法:

  • 在 Frontmatter 中未设置 hideChangelog 或设置为 hideChangelog: false 时,渲染 GitChangelog。
  • 设置为 hideChangelog: true 时,不渲染 GitChangelog。

测试用站点

部署测试结果

隐藏:

image
image

不隐藏:

image

对AppFooter.vue组件进行了重构,添加了动态key和路由监听功能,以及根据Frontmatter隐藏GitChangelog的逻辑。
@Leetfs
Copy link
Member Author

Leetfs commented Sep 9, 2024

在 Frontmatter 中关闭修改时间与编辑历史#273

@Leetfs
Copy link
Member Author

Leetfs commented Sep 9, 2024

有个大聪明之前只重新渲染了 div 内的内容()
测半天才发现 frontmatter 没更新))))

image

@Leetfs Leetfs linked an issue Sep 10, 2024 that may be closed by this pull request
@Cryolitia Cryolitia merged commit 7240ee2 into project-trans:main Sep 11, 2024
@Leetfs Leetfs deleted the add2 branch September 11, 2024 07:09
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.

在 Frontmatter 中关闭修改时间与编辑历史
4 participants