feat: 新增邮箱注册

This commit is contained in:
何嘉悦
2025-06-03 17:52:42 +08:00
parent 67f6bad76b
commit cf1ee9cbb0
9 changed files with 305 additions and 22 deletions
+18
View File
@@ -0,0 +1,18 @@
// 登录表单状态管理
import { defineStore } from 'pinia';
type LoginFormType = 'AccountPassword' | 'VerificationCode' | 'RegistrationForm';
export const useLoginFromStore = defineStore('loginFrom', () => {
const LoginFormType = ref<LoginFormType>('AccountPassword');
// 设置登录表单类型
const setLoginFormType = (type: LoginFormType) => {
LoginFormType.value = type;
};
return {
LoginFormType,
setLoginFormType,
};
});