From 031016330a7b619c0f490881f3dc3d5cbc06912b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Mon, 16 Oct 2023 14:59:55 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Apps/AccountListTable/ViewSecret.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Apps/AccountListTable/ViewSecret.vue b/src/components/Apps/AccountListTable/ViewSecret.vue index 69baac16c..517e42a34 100644 --- a/src/components/Apps/AccountListTable/ViewSecret.vue +++ b/src/components/Apps/AccountListTable/ViewSecret.vue @@ -119,9 +119,11 @@ export default { const url = `/api/v1/accounts/account-secrets/${this.account.id}/histories/?limit=1` this.$axios.get(url, { disableFlashErrorMsg: true }).then(resp => { this.versions = resp.count + this.showSecretDialog() }) + } else { + this.showSecretDialog() } - this.showSecretDialog() }, methods: { accountConfirmHandle() { @@ -138,8 +140,8 @@ export default { this.$message.success(this.$tc('common.updateSuccessMsg')) }) }, - showSecretDialog(res) { - return this.$axios.get(this.url, { disableFlashErrorMsg: true }).then(() => { + showSecretDialog() { + return this.$axios.get(this.url, { disableFlashErrorMsg: true }).then((res) => { this.secretInfo = res this.sshKeyFingerprint = res?.spec_info?.ssh_key_fingerprint || '-' this.showSecret = true