mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-19 19:50:06 +08:00
perf: login
This commit is contained in:
parent
30aa0baf65
commit
c6a5145138
@ -43,11 +43,6 @@ const { t } = useI18n()
|
|||||||
const iconHouse = useIcon({ icon: 'ep:house' })
|
const iconHouse = useIcon({ icon: 'ep:house' })
|
||||||
const iconAvatar = useIcon({ icon: 'ep:avatar' })
|
const iconAvatar = useIcon({ icon: 'ep:avatar' })
|
||||||
const iconLock = useIcon({ icon: 'ep:lock' })
|
const iconLock = useIcon({ icon: 'ep:lock' })
|
||||||
const LoginCaptchaRules = {
|
|
||||||
tenantName: [required],
|
|
||||||
username: [required],
|
|
||||||
password: [required]
|
|
||||||
}
|
|
||||||
const LoginRules = {
|
const LoginRules = {
|
||||||
tenantName: [required],
|
tenantName: [required],
|
||||||
username: [required],
|
username: [required],
|
||||||
@ -142,7 +137,7 @@ onMounted(() => {
|
|||||||
<template>
|
<template>
|
||||||
<el-form
|
<el-form
|
||||||
:model="loginData.loginForm"
|
:model="loginData.loginForm"
|
||||||
:rules="loginData.captchaEnable ? LoginCaptchaRules : LoginRules"
|
:rules="LoginRules"
|
||||||
label-position="top"
|
label-position="top"
|
||||||
class="login-form"
|
class="login-form"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
|
Loading…
Reference in New Issue
Block a user