From c66defa33765e2dd0f8c0080ea31fedc1f28b525 Mon Sep 17 00:00:00 2001 From: bbig Date: Wed, 12 Jul 2023 22:06:46 +0800 Subject: [PATCH] refresh page when routing to logout --- app/components/settings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 436dfa3..5f67536 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -59,7 +59,8 @@ export function Settings() { text={Locale.Settings.Danger.Logout.Action} onClick={async () => { if (await showConfirm(Locale.Settings.Danger.Logout.Confirm)) { - navigate(Path.Logout); + // navigate(Path.Logout); + window.location.href = '/logout'; } }} type="danger"