Commit c6a51451389798fbc0a6fddd155b2c537e6adc3f
1 parent
30aa0baf
perf: login
Showing
1 changed file
with
1 additions
and
6 deletions
yudao-ui-admin-vue3/src/views/Login/components/LoginForm.vue
| ... | ... | @@ -43,11 +43,6 @@ const { t } = useI18n() |
| 43 | 43 | const iconHouse = useIcon({ icon: 'ep:house' }) |
| 44 | 44 | const iconAvatar = useIcon({ icon: 'ep:avatar' }) |
| 45 | 45 | const iconLock = useIcon({ icon: 'ep:lock' }) |
| 46 | -const LoginCaptchaRules = { | |
| 47 | - tenantName: [required], | |
| 48 | - username: [required], | |
| 49 | - password: [required] | |
| 50 | -} | |
| 51 | 46 | const LoginRules = { |
| 52 | 47 | tenantName: [required], |
| 53 | 48 | username: [required], |
| ... | ... | @@ -142,7 +137,7 @@ onMounted(() => { |
| 142 | 137 | <template> |
| 143 | 138 | <el-form |
| 144 | 139 | :model="loginData.loginForm" |
| 145 | - :rules="loginData.captchaEnable ? LoginCaptchaRules : LoginRules" | |
| 140 | + :rules="LoginRules" | |
| 146 | 141 | label-position="top" |
| 147 | 142 | class="login-form" |
| 148 | 143 | label-width="120px" | ... | ... |