chore: 完善切换租户组件

This commit is contained in:
AN
2025-04-26 13:07:34 +08:00
parent 15acc1ff68
commit 28c88c485f
6 changed files with 138 additions and 34 deletions

View File

@ -9,7 +9,7 @@ export function useFormRules() {
userName: {
pattern: REG_USER_NAME,
message: $t('form.userName.invalid'),
trigger: 'change'
trigger: ['change', 'blur']
},
phone: {
pattern: REG_PHONE,
@ -19,7 +19,7 @@ export function useFormRules() {
pwd: {
pattern: REG_PWD,
message: $t('form.pwd.invalid'),
trigger: 'change'
trigger: ['change', 'blur']
},
code: {
pattern: REG_CODE_SIX,