Skip to content

Commit

Permalink
feat(projects): login supports accessible operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Azir-11 committed Oct 4, 2024
1 parent e154fe6 commit 5f7f8b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/views/_builtin/login/modules/code-login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function handleSubmit() {
</script>

<template>
<AForm ref="formRef" :model="model" :rules="rules">
<AForm ref="formRef" :model="model" :rules="rules" @keyup.enter="handleSubmit">
<AFormItem name="phone">
<AInput v-model:value="model.phone" size="large" :placeholder="$t('page.login.common.phonePlaceholder')" />
</AFormItem>
Expand Down
2 changes: 1 addition & 1 deletion src/views/_builtin/login/modules/pwd-login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function handleSubmit() {
</script>

<template>
<AForm ref="formRef" :model="model" :rules="rules">
<AForm ref="formRef" :model="model" :rules="rules" @keyup.enter="handleSubmit">
<AFormItem name="userName">
<AInput v-model:value="model.userName" size="large" :placeholder="$t('page.login.common.userNamePlaceholder')" />
</AFormItem>
Expand Down
2 changes: 1 addition & 1 deletion src/views/_builtin/login/modules/register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function handleSubmit() {
</script>

<template>
<AForm ref="formRef" :model="model" :rules="rules">
<AForm ref="formRef" :model="model" :rules="rules" @keyup.enter="handleSubmit">
<AFormItem name="phone">
<AInput v-model:value="model.phone" size="large" :placeholder="$t('page.login.common.phonePlaceholder')" />
</AFormItem>
Expand Down
2 changes: 1 addition & 1 deletion src/views/_builtin/login/modules/reset-pwd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function handleSubmit() {
</script>

<template>
<AForm ref="formRef" :model="model" :rules="rules">
<AForm ref="formRef" :model="model" :rules="rules" @keyup.enter="handleSubmit">
<AFormItem name="phone">
<AInput v-model:value="model.phone" size="large" :placeholder="$t('page.login.common.phonePlaceholder')" />
</AFormItem>
Expand Down

0 comments on commit 5f7f8b4

Please sign in to comment.