diff --git a/packages/icestark-app/src/AppLink.tsx b/packages/icestark-app/src/AppLink.tsx index 07760ed9..5a2efb8b 100644 --- a/packages/icestark-app/src/AppLink.tsx +++ b/packages/icestark-app/src/AppLink.tsx @@ -44,7 +44,7 @@ const AppLink = (props: AppLinkProps) => { /* * Bind `replaceState` and `pushState` to window to avoid illegal invocation error */ - const changeState = window.history[replace ? 'replaceState' : 'pushState'].bind(window); + const changeState = window.history[replace ? 'replaceState' : 'pushState'].bind(window.history); changeState(_state ?? {}, null, linkTo); }}