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