Revert "feat: 实现基础滚动位置恢复功能"

This reverts commit 4042395e3e.
This commit is contained in:
2026-08-08 02:11:10 +08:00
parent 4042395e3e
commit 1550ccb693
7 changed files with 0 additions and 521 deletions

View File

@@ -21,7 +21,6 @@ import Sidebar, { isNeutralSidebarRoute } from '../components/Sidebar';
import RightPanel from '../components/RightPanel';
import BackToTop from '../components/BackToTop';
import { useForumLimits } from '../hooks/useForumLimits';
import { useScrollRestoration } from '../hooks/useScrollRestoration';
import { buildHomeUrl, parseFeedSort } from '../components/FeedSortBar';
import { navigateFeed } from '../utils/feedCache';
import { notify } from '@/lib/notify';
@@ -75,7 +74,6 @@ export default function MainLayout() {
const [searchAdvanced, setSearchAdvanced] = useState(false);
const feedSort = parseFeedSort(params.get('sort'));
const { limits: forumLimits } = useForumLimits();
useScrollRestoration();
const asideDrawerRef = useRef<HTMLElement>(null);
const asideCloseRef = useRef<HTMLButtonElement>(null);