谢谢,这对我实现一个需要在页面转换时更新的自定义侧边栏部分非常有帮助(请参阅 https://meta.discourse.org/t/making-custom-changes-to-the-sidebar-programmatically/273027)。我遇到的一个问题是,当单击自定义链接时,会触发完整的页面刷新。您是如何解决这个问题的?
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| How to delete some sections from the sidebar | 6 | 562 | 2023 年5 月 17 日 | |
| Making custom changes to the sidebar programmatically | 5 | 652 | 2023 年8 月 4 日 | |
| Ability to add a custom section of links to the sidebar | 15 | 3891 | 2023 年2 月 18 日 | |
| Remove Personal Chat items | 4 | 771 | 2023 年5 月 3 日 | |
| How can I edit sidebar links that are added with api.addCommunitySectionLink? | 4 | 136 | 2025 年3 月 18 日 |