(filterFields: FilterField[] = [], filter: Filter = {})
| 85 | * @returns path |
| 86 | */ |
| 87 | export const getURLPathByFilterParams = (filterFields: FilterField[] = [], filter: Filter = {}) => { |
| 88 | const search = getURLSearchByFilterParams(filterFields, filter); |
| 89 | return `${window.location.pathname}?${qs.stringify(search)}`; |
| 90 | }; |
| 91 | |
| 92 | /** |
| 93 | * 通过路由参数获取filter字段 |
no test coverage detected