feat: 个人中心(未完成)

This commit is contained in:
dap
2024-09-03 16:46:42 +08:00
parent 450a598b30
commit 71f137eda3
12 changed files with 463 additions and 93 deletions

View File

@@ -6,6 +6,7 @@ export { default as AuthenticationQrCodeLogin } from './qrcode-login.vue';
export { default as AuthenticationRegister } from './register.vue';
export type {
AuthenticationProps,
GrantType,
LoginAndRegisterParams,
LoginCodeParams,
} from './types';

View File

@@ -74,9 +74,19 @@ interface AuthenticationProps {
usernamePlaceholder?: string;
}
/**
* 登录类型
* password 密码
* sms 短信
* social 第三方oauth
* email 邮箱
* xcx 小程序
*/
type GrantType = 'email' | 'password' | 'sms' | 'social' | 'xcx';
interface LoginAndRegisterParams {
code?: string;
grantType: string;
grantType: GrantType;
password: string;
tenantId: string;
username: string;
@@ -102,6 +112,7 @@ interface RegisterEmits {
export type {
AuthenticationProps,
GrantType,
LoginAndRegisterParams,
LoginCodeEmits,
LoginCodeParams,