fixed: 未登录的跳转

This commit is contained in:
none 2023-04-03 09:22:06 +08:00
parent c497da6947
commit 00f3767c5f

View File

@ -65,6 +65,9 @@ if (getToken()) {
}); });
}); });
} else { } else {
if (window.location.pathname !== "/login") {
window.location.href = "/login";
}
RootPage = <InitPage loginData={null} />; RootPage = <InitPage loginData={null} />;
} }