fix: 修改手机号验证码长度
This commit is contained in:
parent
aa086a2800
commit
63c06e02b2
@ -18,7 +18,7 @@ import { useAuthStore } from '#/store';
|
|||||||
defineOptions({ name: 'CodeLogin' });
|
defineOptions({ name: 'CodeLogin' });
|
||||||
|
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const CODE_LENGTH = 6;
|
const CODE_LENGTH = 4;
|
||||||
|
|
||||||
const tenantInfo = ref<TenantResp>({
|
const tenantInfo = ref<TenantResp>({
|
||||||
tenantEnabled: false,
|
tenantEnabled: false,
|
||||||
@ -85,8 +85,8 @@ const formSchema = computed((): VbenFormSchema[] => {
|
|||||||
: $t('authentication.sendCode');
|
: $t('authentication.sendCode');
|
||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
// 验证码长度 在这设置
|
// 验证码长度
|
||||||
codeLength: 4,
|
codeLength: CODE_LENGTH,
|
||||||
placeholder: $t('authentication.code'),
|
placeholder: $t('authentication.code'),
|
||||||
handleSendCode: async () => {
|
handleSendCode: async () => {
|
||||||
const { valid, value } = await form.validateField('phoneNumber');
|
const { valid, value } = await form.validateField('phoneNumber');
|
||||||
|
Loading…
Reference in New Issue
Block a user