MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / onRouteHandle

Function onRouteHandle

web/packages/shared/component/search/index.tsx:84–89  ·  view source on GitHub ↗
(params: FilterParams)

Source from the content-addressed store, hash-verified

82
83 // 筛选路由跳转处理,仅当route为true时生效
84 const onRouteHandle = (params: FilterParams) => {
85 if (route) {
86 const url = getURLPathByFilterParams(moreFields ? fields.concat(moreFields) : fields, params);
87 history.push(url);
88 }
89 };
90
91 const onChange = (key: string, value: any) => {
92 const params = {

Callers 2

onChangeFunction · 0.70
onClearFunction · 0.70

Calls 1

getURLPathByFilterParamsFunction · 0.90

Tested by

no test coverage detected