From 0e170d81d21eff9d3ec30a2c27f69739f830681a Mon Sep 17 00:00:00 2001 From: yuanyxh <15766118362@139.com> Date: Mon, 30 Sep 2024 17:05:56 +0800 Subject: [PATCH] chore: delete log --- src/router/hooks/useScrollStore.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/router/hooks/useScrollStore.ts b/src/router/hooks/useScrollStore.ts index 6c74324..55c0eb8 100644 --- a/src/router/hooks/useScrollStore.ts +++ b/src/router/hooks/useScrollStore.ts @@ -98,8 +98,6 @@ export function useScrollStore(eleRef: RefObject) { return state.timestamp > savedScrollPosition.timestamp ? state : savedScrollPosition; } - console.log('2', toLocation.current); - // we take the scroll position from history.state, if it doesn't exist, from the map, otherwise the scroll position is 0 return state || savedScrollPosition || { y: 0 }; };