From e83afb02fb95315f6919678b4b05ad645eb88031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Thu, 2 Mar 2023 16:22:35 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E8=AF=A6=E6=83=85ssh=E6=8C=87=E7=BA=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AccountListTable/ViewSecret.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AccountListTable/ViewSecret.vue b/src/components/AccountListTable/ViewSecret.vue index 2b3ca9f3c..ae363b78b 100644 --- a/src/components/AccountListTable/ViewSecret.vue +++ b/src/components/AccountListTable/ViewSecret.vue @@ -103,7 +103,7 @@ export default { secretInfo: {}, versions: '-', showSecret: false, - sshKeyFingerprint: '', + sshKeyFingerprint: '-', historyCount: 0, showPasswordHistoryDialog: false } @@ -128,7 +128,7 @@ export default { getAuthInfo() { this.$axios.get(this.url, { disableFlashErrorMsg: true }).then(resp => { this.secretInfo = resp - this.sshKeyFingerprint = resp?.spec_info + this.sshKeyFingerprint = resp?.spec_info?.ssh_key_fingerprint || '-' this.showSecret = true }) },