diff --git a/packages/core/client/src/route-switch/antd/route-schema-component/index.tsx b/packages/core/client/src/route-switch/antd/route-schema-component/index.tsx index 00bbc31ff7..9881eb4d5c 100644 --- a/packages/core/client/src/route-switch/antd/route-schema-component/index.tsx +++ b/packages/core/client/src/route-switch/antd/route-schema-component/index.tsx @@ -8,10 +8,9 @@ */ import React from 'react'; -import { useParams } from 'react-router-dom'; -import { RemoteSchemaComponent } from '../../../'; +import { RemoteSchemaComponent, useCurrentPageUid } from '../../../'; export function RouteSchemaComponent() { - const params = useParams(); - return ; + const currentPageUid = useCurrentPageUid(); + return ; }