Add frontend support for customizing login and logout pages

Signed-off-by: JohnNiang <johnniang@foxmail.com>
This commit is contained in:
Ryan Wang
2024-09-28 17:38:32 +08:00
committed by JohnNiang
parent 1f9610686b
commit 8547ffe613
40 changed files with 1380 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ const handleLogout = () => {
document.cookie =
"XSRF-TOKEN=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
router.replace({ name: "Login" });
window.location.href = "/login";
} catch (error) {
console.error("Failed to logout", error);
}