diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 4675617..e27405b 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -65,6 +65,9 @@ if (getToken()) { }); }); } else { + if (window.location.pathname !== "/login") { + window.location.href = "/login"; + } RootPage = ; }