# 使用新的自定义主页功能

**URL:** https://meta.discourse.org/t/using-the-new-custom-homepage-feature/302496
**Category:** Development
**Created:** [2024年四月4日 21:43 UTC](https://meta.discourse.org/t/using-the-new-custom-homepage-feature/302496 "2024-04-04T21:43:02Z")
**Posts on this page:** 1
**Showing post:** 19

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [2024年六月6日 20:22 UTC](https://meta.discourse.org/t/using-the-new-custom-homepage-feature/302496/19 "2024-06-06T20:22:07Z")

</div>

我遇到的一个问题：我想在自定义主页上显示 [Homepage Feature component](https://meta.discourse.org/t/homepage-feature/144264)。但是在这个路由上，主题没有被过滤。该组件只显示任何带有图片的最新主题。

组件上的代码是：

```plaintext
    const topicList = await this.store.findFiltered("topicList", {
      filter: "latest",
      params: {
        tags: [`${settings.featured_tag}`],
        order: sortOrder,
      }

```

似乎 params 没有在自定义主页上应用。否则它工作正常。不确定为什么会这样？

编辑：我在 [Featured Lists component](https://meta.discourse.org/t/featured-lists/288916) 上使用了相同的方法。当在自定义主页上使用此组件时，过滤器也没有应用。但只在第一个列表中…当有更多列表时，接下来的列表都经过了正确的过滤。

---

_[View the full topic](https://meta.discourse.org/t/using-the-new-custom-homepage-feature/302496)._
