优化代码
This commit is contained in:
@@ -45,7 +45,7 @@ const rules = ref({
|
||||
function submit() {
|
||||
proxy.$refs.pwdRef.validate(valid => {
|
||||
if (valid) {
|
||||
updateUserPwd(user.oldPassword, user.newPassword).then(response => {
|
||||
updateUserPwd(user.oldPassword, user.newPassword).then(() => {
|
||||
proxy.$modal.msgSuccess("修改成功")
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user