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 4b8e932 commit b4f8f61
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/frontend/devops-repository/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,16 @@
let projectId = ''
if (this.projectList.find(v => v.id === urlProjectId)) {
projectId = urlProjectId
} else if (this.projectList.find(v => v.id === localProjectId)) {
this.$bkMessage({
message: this.$t('projectNoPermissionTip', { 0: urlProjectId }),
theme: 'primary'
})
projectId = localProjectId
} else {
this.$bkMessage({
message: this.$t('projectNoPermissionTip', { 0: urlProjectId }),
theme: 'primary'
})
projectId = (this.projectList[0] || {}).id
if (this.projectList.find(v => v.id === localProjectId)) {
projectId = localProjectId
} else {
projectId = (this.projectList[0] || {}).id
}
}
localStorage.setItem('projectId', projectId)
Expand Down

0 comments on commit b4f8f61

Please sign in to comment.