|
|
@ -23,7 +23,7 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<div class="tips">温馨提示:<span>密码长度通常需要在6-20个字符之间。</span></div> |
|
|
|
<!-- <div class="tips">温馨提示:<span>密码长度通常需要在6-20个字符之间。</span></div>--> |
|
|
|
<div class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="submitForm" style="width: 100%;height: 40px;line-height: 40px;">确 定</el-button> |
|
|
|
</div> |
|
|
@ -54,6 +54,7 @@ |
|
|
|
password: '', |
|
|
|
againPassword: '', |
|
|
|
mailKey: '', |
|
|
|
userName: route.query.username, |
|
|
|
}) |
|
|
|
const isShowPassword = ref(false) |
|
|
|
const isShowAgainPassword = ref(false) |
|
|
@ -66,10 +67,11 @@ |
|
|
|
message.error('两次输入的密码不一致,请重新输入!') |
|
|
|
} else { |
|
|
|
const data = loginData as unknown as UserApi.UserVO |
|
|
|
debugger |
|
|
|
await UserApi.updatePassword(data) |
|
|
|
// 发送操作成功的事件 |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
router.go(-1) |
|
|
|
router.go(-1) |
|
|
|
} |
|
|
|
} finally { |
|
|
|
// formLoading.value = false |
|
|
|