From 00f3767c5f26fb805c96ff3b6a687af1cfc0b139 Mon Sep 17 00:00:00 2001 From: none Date: Mon, 3 Apr 2023 09:22:06 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E6=9C=AA=E7=99=BB=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/index.tsx | 3 +++ 1 file changed, 3 insertions(+) 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 = ; }