perf: reduce frontend login and dashboard friction (#1447)

Co-authored-by: apple <apple@MacbookPro-zbh.local>
This commit is contained in:
Zavier
2026-03-31 20:40:12 +08:00
committed by GitHub
parent d250aed26a
commit 287280857b
6 changed files with 26 additions and 33 deletions

View File

@@ -55,11 +55,6 @@ function App() {
const { config: systemConfig, loading: configLoading } = useSystemConfig()
const [route, setRoute] = useState(window.location.pathname)
// Debug log
useEffect(() => {
console.log('[App] Mounted. Route:', window.location.pathname);
}, []);
// 从URL路径读取初始页面状态支持刷新保持页面
const getInitialPage = (): Page => {
const path = window.location.pathname