---
url: /reference/resource/extensions/ship-product-hub.md
---

# 产品 - 首页导航

产品首页扩展模块，允许在产品首页左侧添加自定义组件页面，扩展模块支持自定义分组名称，该页面的访问地址为：

`/ship/apps/{appId}/{envId}/{route}`

![产品｜首页导航.png](../../../assets/9f87fa8382c1ed659e69fa8834a61e6ba3fda2af.png)

## 配置

配置结构：

```yaml
extensions []
├─ key (string) [Mandatory]
├─ target (string) [Mandatory]
├─ resolver {} [Mandatory]
├─ pages {} [Mandatory]
│  ├─ key (string) [Mandatory]
│  ├─ title (string | i18n) [Mandatory]
│  ├─ resource (string) [Mandatory]
│  ├─ route (string) [Mandatory]
│  └─ icon (string) [Optional]
└─ section {} [Optional]
   ├─ header (string) [Mandatory]
   └─ enabled (boolean) [Optional]
```

配置示例：

```yaml
extensions:
  - key: example-product-hub
    target: "pcm:ship:product:hub"
    resolver:
      function: resolver
    pages:
      - key: example-page
        title: Page title
        resource: main
        route: route-page
        icon: "resource:example-resource/icons/icon.svg"
    section:
      header: Section title
      enabled: true
```

## 属性

配置属性：

## 扩展数据

当前模块可访问的扩展数据：

## 限制

每个扩展模块对应的数量限制：

## 桥接方法

当前扩展模块不支持以下桥接方法，详情请参考 [view](/reference/interface/bridge/view) 。
