From 6393560409b58d83da9c106a4bcd3d87074de33d Mon Sep 17 00:00:00 2001 From: shuai Date: Thu, 2 Mar 2023 15:35:06 +0800 Subject: [PATCH] fix: users login page can refresh --- ui/src/components/Header/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/components/Header/index.tsx b/ui/src/components/Header/index.tsx index eda36a03..ced8ffc0 100644 --- a/ui/src/components/Header/index.tsx +++ b/ui/src/components/Header/index.tsx @@ -71,6 +71,10 @@ const Header: FC = () => { }; const onLoginClick = (evt) => { evt.preventDefault(); + if (location.pathname === '/users/login') { + window.location.reload(); + return; + } floppyNavigation.navigateToLogin((loginPath) => { navigate(loginPath, { replace: true }); });