refactor(auth): rename loginType to loginStatus and update related logic

This commit is contained in:
2026-06-11 12:04:48 +08:00
parent 72941d9c9f
commit b50191ed50
7 changed files with 41 additions and 30 deletions
+4 -3
View File
@@ -3,7 +3,7 @@
*/
import type { AuthMode } from "@/models/auth/auth-mode";
import type { AuthPanelMode } from "@/models/auth/auth-panel-mode";
import type { LoginType } from "@/models/auth/login-type";
import type { LoginStatus } from "@/models/auth/login-status";
export interface AuthState {
/** 当前面板模式(Facebook / Email */
@@ -15,7 +15,8 @@ export interface AuthState {
username: string;
confirmPassword: string;
errorMessage: string | null;
loginType: LoginType;
/** 当前登录状态(未登录 / 游客 / OAuth / 邮箱) */
loginStatus: LoginStatus;
}
export const initialState: AuthState = {
@@ -26,5 +27,5 @@ export const initialState: AuthState = {
username: "",
confirmPassword: "",
errorMessage: null,
loginType: "none",
loginStatus: "notLoggedIn",
};