fix(RouterContainer): remove unnecessary empty-dep useMemo

getEntryPointType() is a simple config getter. Replace useMemo(() => ..., [])
with a direct call — the empty dep array made the memo pointless.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
雨霖铃
2026-05-27 13:55:54 +08:00
parent 27d3360f9d
commit 003dad5d8b
+1 -3
View File
@@ -14,9 +14,7 @@ export default function RouterContainer() {
return currentPage === 'dashboard' ? 'page-transition-dashboard' : 'page-transition-enter'; return currentPage === 'dashboard' ? 'page-transition-dashboard' : 'page-transition-enter';
}, [currentPage]); }, [currentPage]);
const entryPointType = useMemo(() => { const entryPointType = getEntryPointType();
return getEntryPointType();
}, []);
// 骨架屏加载状态守卫 // 骨架屏加载状态守卫
if (!isLoaded) { if (!isLoaded) {