mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 23:18:17 +00:00
Merge pull request #1279 from jumpserver/pr@dev@fix_accounts_edit_password_errortip
fix: 修复资产账号修改密码时报错提示重复问题
This commit is contained in:
commit
048fee7ede
@ -58,11 +58,12 @@ export default {
|
|||||||
}
|
}
|
||||||
if (this.authInfo.private_key !== '') {
|
if (this.authInfo.private_key !== '') {
|
||||||
data.private_key = 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(
|
this.$axios.patch(
|
||||||
`/api/v1/assets/accounts/${this.account.id}/`,
|
`/api/v1/assets/accounts/${this.account.id}/`,
|
||||||
data
|
data,
|
||||||
|
{ disableFlashErrorMsg: true }
|
||||||
).then(res => {
|
).then(res => {
|
||||||
this.authInfo = { password: '', private_key: '' }
|
this.authInfo = { password: '', private_key: '' }
|
||||||
this.$message.success(this.$tc('common.updateSuccessMsg'))
|
this.$message.success(this.$tc('common.updateSuccessMsg'))
|
||||||
|
Loading…
Reference in New Issue
Block a user