CN-1118 fix:修改密码时输入错误的当前密码,更新时没有提示

This commit is contained in:
hyx
2023-07-03 16:14:09 +08:00
parent d841118ad9
commit 697cc1da2d

View File

@@ -606,6 +606,15 @@ export default {
this.showChangePin = false
} else if (res.code === 518005) {
this.$message.error('密码错误')
} else {
this.$message.error(res.message)
}
}).catch(e => {
console.error(e)
if (e.response.data && e.response.data.message) {
this.$message.error(e.response.data.message)
} else {
this.$message.error('Something went wrong...')
}
})
} else {