feat: 新增邮箱注册
This commit is contained in:
@@ -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,
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user