mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-09 02:27:41 +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
|
this.iVisible = iVisible
|
||||||
if (!iVisible) {
|
if (!iVisible) {
|
||||||
this.$store.commit('common/reload')
|
this.$emit('add', true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
editAccount(form) {
|
editAccount(form) {
|
||||||
const data = { ...form }
|
const data = { ...form }
|
||||||
this.$axios.patch(`/api/v1/accounts/accounts/${this.account.id}/`, data).then(() => {
|
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'))
|
this.$message.success(this.$tc('common.updateSuccessMsg'))
|
||||||
}).catch(error => this.setFieldError(error))
|
}).catch(error => this.setFieldError(error))
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user