mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-31 22:55:01 +00:00
Merge pull request #2987 from jumpserver/pr@dev@account_update
perf: 账号创建更新优化
This commit is contained in:
commit
b33f598742
@ -100,12 +100,14 @@ export default {
|
||||
})
|
||||
this.iVisible = iVisible
|
||||
if (!iVisible) {
|
||||
this.$store.commit('common/reload')
|
||||
this.$emit('add', true)
|
||||
}
|
||||
},
|
||||
editAccount(form) {
|
||||
const data = { ...form }
|
||||
this.$axios.patch(`/api/v1/accounts/accounts/${this.account.id}/`, data).then(() => {
|
||||
this.iVisible = false
|
||||
this.$emit('add', true)
|
||||
this.$message.success(this.$tc('common.updateSuccessMsg'))
|
||||
}).catch(error => this.setFieldError(error))
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user