fix: 修改账号列表更新表单错误提示

This commit is contained in:
Bai
2021-07-23 16:35:48 +08:00
committed by 老广
parent cbd18814f6
commit 6bab31d74c

View File

@@ -64,8 +64,9 @@ export default {
this.$emit('updateAuthDone', res)
this.$emit('update:visible', false)
}).catch(err => {
this.$message.error(this.$tc('common.updateErrorMsg' + ' ' + err))
this.$emit('update:visible', false)
const errMsg = Object.values(err.response.data).join(', ')
this.$message.error(this.$tc('common.updateErrorMsg') + ' ' + errMsg)
this.$emit('update:visible', true)
})
},
handleCancel() {