安全信息保存后重置

This commit is contained in:
duan 2024-07-15 10:35:35 +08:00
parent abe786d155
commit cfa32e18ba
1 changed files with 9 additions and 0 deletions

View File

@ -49,7 +49,16 @@ export default {
code: this.form.prepareAmount,
pwd: md5(this.form.password),
}
if (!this.form.prepareAmount) {
this.$message({
message: "请输入验证码或密码"
})
return
}
const res = await modfiyUserInfo(data);
this.form.prepareAmount = ''
this.form.password = "******"
this.disabled = true
this.$message({
message: '修改成功',
type: 'success'