diff --git a/src/stores/auth/auth-events.ts b/src/stores/auth/auth-events.ts index e01d58b9..c58b5b6a 100644 --- a/src/stores/auth/auth-events.ts +++ b/src/stores/auth/auth-events.ts @@ -12,7 +12,6 @@ export type AuthEvent = | { type: "AuthPanelModeChanged"; mode: AuthPanelMode } | { type: "AuthModeChanged"; mode: AuthMode } | { type: "AuthFormCleared" } - | { type: "AuthReset" } | { type: "AuthLogoutSubmitted" } /** App 启动时一次性派发 —— 读 storage 把 loginStatus 同步到状态机 */ | { type: "AuthInit" } diff --git a/src/stores/auth/auth-machine.ts b/src/stores/auth/auth-machine.ts index 56efeb4d..9501502b 100644 --- a/src/stores/auth/auth-machine.ts +++ b/src/stores/auth/auth-machine.ts @@ -78,9 +78,6 @@ export const authMachine = setup({ errorMessage: null, }), }, - AuthReset: { - actions: assign(() => initialState), - }, AuthLogoutSubmitted: "loggingOut", // 启动一次性 init:从 storage 同步 loginStatus 到状态机 —— 由 派发 AuthInit: "initializing",