From 941f1d855e3cb94489d42198776409ca329cace4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=E6=80=80=E7=A3=8A=E2=80=9D?= <2280131253@qq.com> Date: Tue, 18 Jan 2022 17:13:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E6=97=B6?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E6=8F=90=E7=A4=BA=E9=87=8D=E5=A4=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AccountListTable/UpdateSecretInfo.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/AccountListTable/UpdateSecretInfo.vue b/src/components/AccountListTable/UpdateSecretInfo.vue index 6e52ed4a7..a7be3023a 100644 --- a/src/components/AccountListTable/UpdateSecretInfo.vue +++ b/src/components/AccountListTable/UpdateSecretInfo.vue @@ -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'))