|
@@ -704,28 +704,19 @@ const updatePwdForm = async (formEl) => {
|
|
|
|
|
|
if (typeof password == 'string' && password.length < 5) {
|
|
|
ElMessage({ type: 'error', message: '密码长度必须大等于6', });
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
if (typeof password2 == 'string' && password2.length < 5) {
|
|
|
ElMessage({ type: 'error', message: '确认密码长度必须大等于6', });
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
if (password != password2) {
|
|
|
ElMessage({ type: 'error', message: '密码和确认密码必须一致', });
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
- console.log(
|
|
|
- "submit", submit
|
|
|
- );
|
|
|
-
|
|
|
- // // 重新查找分页数据
|
|
|
- // pageUpdateEvent();
|
|
|
- // // 接口请求完成,隐藏模态框
|
|
|
- // state.value.showUpdatePwd = false;
|
|
|
-
|
|
|
-
|
|
|
- return;
|
|
|
-
|
|
|
userUpdate(submit)
|
|
|
.then(response => {
|
|
|
|