9
9
label-width =" 120px"
10
10
size =" large"
11
11
>
12
- <el-row style = " margin-right : -10px ; margin-left : -10 px " >
12
+ <el-row class = " mx-[ -10px] " >
13
13
<!-- 租户名 -->
14
- <el-col :span =" 24" style = " padding-right : 10 px ; padding-left : 10px " >
14
+ <el-col :span =" 24" class = " px- 10px" >
15
15
<el-form-item >
16
- <LoginFormTitle style = " width : 100 % " />
16
+ <LoginFormTitle class = " w-full " />
17
17
</el-form-item >
18
18
</el-col >
19
- <el-col :span =" 24" style = " padding-right : 10 px ; padding-left : 10px " >
19
+ <el-col :span =" 24" class = " px- 10px" >
20
20
<el-form-item v-if =" resetPasswordData.tenantEnable === 'true'" prop =" tenantName" >
21
21
<el-input
22
22
v-model =" resetPasswordData.tenantName"
28
28
</el-form-item >
29
29
</el-col >
30
30
<!-- 手机号 -->
31
- <el-col :span =" 24" style = " padding-right : 10 px ; padding-left : 10px " >
31
+ <el-col :span =" 24" class = " px- 10px" >
32
32
<el-form-item prop =" mobile" >
33
33
<el-input
34
34
v-model =" resetPasswordData.mobile"
45
45
@success =" getSmsCode"
46
46
/>
47
47
<!-- 验证码 -->
48
- <el-col :span =" 24" style = " padding-right : 10 px ; padding-left : 10px " >
48
+ <el-col :span =" 24" class = " px- 10px" >
49
49
<el-form-item prop =" code" >
50
50
<el-row :gutter =" 5" justify =" space-between" style =" width : 100% " >
51
51
<el-col :span =" 24" >
73
73
</el-row >
74
74
</el-form-item >
75
75
</el-col >
76
- <el-col :span =" 24" style = " padding-right : 10 px ; padding-left : 10px " >
76
+ <el-col :span =" 24" class = " px- 10px" >
77
77
<el-form-item prop =" password" >
78
78
<InputPassword
79
79
v-model =" resetPasswordData.password"
80
80
:placeholder =" t('login.passwordPlaceholder')"
81
- style = " width : 100 % "
82
- strength =" true"
81
+ class = " w-full "
82
+ : strength =" true"
83
83
/>
84
84
</el-form-item >
85
85
</el-col >
86
- <el-col :span =" 24" style = " padding-right : 10 px ; padding-left : 10px " >
86
+ <el-col :span =" 24" class = " px- 10px" >
87
87
<el-form-item prop =" check_password" >
88
88
<InputPassword
89
89
v-model =" resetPasswordData.check_password"
90
90
:placeholder =" t('login.checkPassword')"
91
- style = " width : 100 % "
92
- strength =" true"
91
+ class = " w-full "
92
+ : strength =" true"
93
93
/>
94
94
</el-form-item >
95
95
</el-col >
96
96
<!-- 登录按钮 / 返回按钮 -->
97
- <el-col :span =" 24" style = " padding-right : 10 px ; padding-left : 10px " >
97
+ <el-col :span =" 24" class = " px- 10px" >
98
98
<el-form-item >
99
99
<XButton
100
100
:loading =" loginLoading"
101
101
:title =" t('login.resetPassword')"
102
- class =" w-[100%] "
102
+ class =" w-full "
103
103
type =" primary"
104
104
@click =" resetPassword()"
105
105
/>
106
106
</el-form-item >
107
107
</el-col >
108
- <el-col :span =" 24" style = " padding-right : 10 px ; padding-left : 10px " >
108
+ <el-col :span =" 24" class = " px- 10px" >
109
109
<el-form-item >
110
110
<XButton
111
111
:loading =" loginLoading"
112
112
:title =" t('login.backLogin')"
113
- class =" w-[100%] "
113
+ class =" w-full "
114
114
@click =" handleBackLogin()"
115
115
/>
116
116
</el-form-item >
@@ -134,7 +134,7 @@ const verify = ref()
134
134
135
135
const { t } = useI18n ()
136
136
const message = useMessage ()
137
- const { currentRoute, push } = useRouter ()
137
+ const { currentRoute } = useRouter ()
138
138
const formSmsResetPassword = ref ()
139
139
const loginLoading = ref (false )
140
140
const iconHouse = useIcon ({ icon: ' ep:house' })
@@ -145,7 +145,7 @@ const { handleBackLogin, getLoginState, setLoginState } = useLoginState()
145
145
const getShow = computed (() => unref (getLoginState ) === LoginStateEnum .RESET_PASSWORD )
146
146
const captchaType = ref (' blockPuzzle' ) // blockPuzzle 滑块 clickWord 点击文字
147
147
148
- const validatePass2 = (rule , value , callback ) => {
148
+ const validatePass2 = (_rule , value , callback ) => {
149
149
if (value === ' ' ) {
150
150
callback (new Error (' 请再次输入密码' ))
151
151
} else if (value !== resetPasswordData .password ) {
0 commit comments