Skip to content

Commit

Permalink
bugfix: DDC在浏览器进行OAuth授权时自动跳转至首页 #2839
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 committed Dec 12, 2024
1 parent b02f1cc commit 8e90db5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/frontend/devops-repository/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@
}
} else {
let projectId = ''
if (this.projectList.find(v => v.id === urlProjectId)) {
const hasUrlProjectId = this.projectList.find(v => v.id === urlProjectId)
if (!hasUrlProjectId) {
this.$bkMessage({
message: this.$t('projectNoPermissionTip', { 0: urlProjectId }),
theme: 'error'
})
}
if (hasUrlProjectId) {
projectId = urlProjectId
} else {
this.$bkMessage({
Expand Down

0 comments on commit 8e90db5

Please sign in to comment.