Compare commits

..

1 Commits

Author SHA1 Message Date
w940853815
b11f99345f feat: Add permission check for reading account secrets based on system settings 2025-11-26 15:52:05 +08:00
2 changed files with 48 additions and 50 deletions

View File

@@ -146,7 +146,7 @@ export default {
}) })
}, },
showSecretDialog() { showSecretDialog() {
return this.$axios.get(this.url, { disableFlashErrorMsg: true }).then((res) => { return this.$axios.get(this.url).then((res) => {
this.secretInfo = res this.secretInfo = res
this.sshKeyFingerprint = res?.spec_info?.ssh_key_fingerprint || '-' this.sshKeyFingerprint = res?.spec_info?.ssh_key_fingerprint || '-'
this.showSecret = true this.showSecret = true

View File

@@ -243,12 +243,10 @@ export default {
delete routeFilter.search delete routeFilter.search
} }
const asFilterTags = _.cloneDeep(this.filterTags) const asFilterTags = _.cloneDeep(this.filterTags)
setTimeout(() => {
this.filterTags = { this.filterTags = {
...asFilterTags, ...asFilterTags,
...routeFilter ...routeFilter
} }
}, 100)
}, },
getValueLabel(key, value) { getValueLabel(key, value) {
for (const field of this.options) { for (const field of this.options) {