perf: 调整账号详情ssh指纹显示

This commit is contained in:
“huailei000”
2023-03-02 16:22:35 +08:00
committed by huailei
parent fadc3f8cb0
commit e83afb02fb

View File

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