Merge pull request #1279 from jumpserver/pr@dev@fix_accounts_edit_password_errortip

fix: 修复资产账号修改密码时报错提示重复问题
This commit is contained in:
feng626 2022-01-18 19:16:34 +08:00 committed by GitHub
commit 048fee7ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,11 +58,12 @@ export default {
}
if (this.authInfo.private_key !== '') {
data.private_key = this.authInfo.private_key
data.passphrase = this.authInfo.passphrase
if (this.authInfo.passphrase) data.passphrase = this.authInfo.passphrase
}
this.$axios.patch(
`/api/v1/assets/accounts/${this.account.id}/`,
data
data,
{ disableFlashErrorMsg: true }
).then(res => {
this.authInfo = { password: '', private_key: '' }
this.$message.success(this.$tc('common.updateSuccessMsg'))