diff --git a/packages/core/client/src/schema-component/antd/page/Page.tsx b/packages/core/client/src/schema-component/antd/page/Page.tsx index bafe9b4f2..c85de87ef 100644 --- a/packages/core/client/src/schema-component/antd/page/Page.tsx +++ b/packages/core/client/src/schema-component/antd/page/Page.tsx @@ -170,7 +170,7 @@ export const Page = (props) => { onTabClick={(activeKey) => { setLoading(true); setActiveKey(activeKey); - window.history.pushState({}, '', location.pathname + `?tab=` + activeKey); + window.history.pushState({}, '', window.location.pathname + `?tab=` + activeKey); setTimeout(() => { setLoading(false); }, 50);