Appearance
getRegionListByPid
▸ getRegionListByPid(regionData, pid?): { id: number ; name: string }[]
根据区号获取子区域列表
参数
| Name | Type | Default value | Description |
|---|---|---|---|
regionData | Record<number, string[]> | undefined | 区域数据 |
pid | string | '086' |
返回值
{ id: number ; name: string }[]
示例
ts
REGION_DATA 通常从 shared-constants 引入
getRegionListByPid(REGION_DATA, '086')