Skip to content

Commit

Permalink
feat:流水线权限代持功能重构 TencentBlueKing#10356
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 13660
  • Loading branch information
vhwweng committed Jul 31, 2024
1 parent 329de2c commit 8a13b3d
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,18 +180,18 @@
}
})
this.showResetDialog = false
if (res.SUCCESS.length) {
this.fetchResourceAuth()
this.$bkMessage({
theme: 'success',
message: this.$t('delegation.resetSuc')
})
} else if (res.FAILED.length) {
if (res?.FAILED?.length) {
const message = res.FAILED[0]?.handoverFailedMessage || ''
this.$bkMessage({
theme: 'error',
message
})
} else {
this.fetchResourceAuth()
this.$bkMessage({
theme: 'success',
message: this.$t('delegation.resetSuc')
})
}
} catch (e) {
this.resetLoading = false
Expand Down

0 comments on commit 8a13b3d

Please sign in to comment.