feat: 添加用户界面

This commit is contained in:
Gavan
2025-07-21 18:06:06 +08:00
parent b1c80406c2
commit 4c3864f665
18 changed files with 508 additions and 100 deletions

View File

@@ -61,7 +61,9 @@ export enum ContentType {
const redirectToLogin = () => {
const redirectAfterLogin = encodeURIComponent(location.href);
const search = `redirect=${redirectAfterLogin}`;
const pathname = "/login";
const pathname = location.pathname.startsWith("/user")
? "/user/login"
: "/login";
window.location.href = `${pathname}?${search}`;
};