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 }) },