---
description: "prefixSecondPath prefixSecondPath：内部方法 获取对应二级路径"
category: cross-app-routing
keywords: ["prefixSecondPath", "跨应用", "跨模块", "路由", "history", "链接拦截", "多级路径"]
source: "https://www.e-cology.com.cn/utils/prefixSecondPath/freepass"
---

# prefixSecondPath prefixSecondPath

## 适用场景

内部方法 获取对应二级路径

## 检索符号

- `prefixSecondPath`

## 代表示例

```js
import { prefixSecondPath } from '@weapp/utils';
window['apiDomainweappbcw'] = '';
const secondPath = prefixSecondPath(
  '/api/bcw/map/selectTemplateByUserId?weappmonitor_traceId=ox7z3toqiy_1666674863386'
);
console.log(secondPath);
/api/bcw/map/selectTemplateByUserId?weappmonitor_traceId=ox7z3toqiy_1666674863386
```

## 深入阅读
- [在线免登文档](https://www.e-cology.com.cn/utils/prefixSecondPath/freepass)

> 本卡用于快速选型。参数、返回值、限制和完整示例以原始文档为准。
