From 19b2b5505168184198fc2e1e66696a9661364c97 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 4 Apr 2023 16:03:52 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B4=A6=E5=8F=B7=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AccountListTable/AccountCreateUpdate.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/AccountListTable/AccountCreateUpdate.vue b/src/components/AccountListTable/AccountCreateUpdate.vue index 4eebb838f..f176e1c43 100644 --- a/src/components/AccountListTable/AccountCreateUpdate.vue +++ b/src/components/AccountListTable/AccountCreateUpdate.vue @@ -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)) },