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

0 comments on commit 5659863

Please sign in to comment.