fix:验证码校验修改
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { ref, toValue } from 'vue';
|
import { ref, toValue } from 'vue';
|
||||||
import type { ComputedRef, Ref } from 'vue';
|
import type { ComputedRef, Ref } from 'vue';
|
||||||
import type { FormInstance } from 'ant-design-vue';
|
import type { FormInstance } from 'ant-design-vue';
|
||||||
import { REG_CODE_SIX, REG_EMAIL, REG_PHONE, REG_PWD, REG_USER_NAME } from '@/constants/reg';
|
import {REG_CODE_FOUR, REG_EMAIL, REG_PHONE, REG_PWD, REG_USER_NAME} from '@/constants/reg';
|
||||||
import { $t } from '@/locales';
|
import { $t } from '@/locales';
|
||||||
|
|
||||||
export function useFormRules() {
|
export function useFormRules() {
|
||||||
@@ -22,7 +22,7 @@ export function useFormRules() {
|
|||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
},
|
},
|
||||||
code: {
|
code: {
|
||||||
pattern: REG_CODE_SIX,
|
pattern: REG_CODE_FOUR,
|
||||||
message: $t('form.code.invalid'),
|
message: $t('form.code.invalid'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user