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 10, 2024
1 parent 901cd2f commit 7e3ef75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/frontend/devops-repository/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
} else if (this.projectList.find(v => v.id === localProjectId)) {
projectId = localProjectId
} else {
this.$bkMessage({
message: this.$t('projectNoPermissionTip', { 0: urlProjectId }),
theme: 'primary'
})
projectId = (this.projectList[0] || {}).id
}
localStorage.setItem('projectId', projectId)
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/locale/repository/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -902,5 +902,6 @@
"conanCreditGuideSubTitle1":"1. Execute the following command on the command line to configure remote artifact repository",
"conanCreditGuideSubTitle2":"2、Execute the following command on the command line to configure artifact repository credentials(conan1.x)",
"conanRecipePlaceholder":"The format of RECIPE is <NAME>/VERSION>@<USER>/CHANNEL>",
"conanPullGuideSubTitle":"Please execute the following command on the command line to pull(conan1.x):"
"conanPullGuideSubTitle":"Please execute the following command on the command line to pull(conan1.x):",
"projectNoPermissionTip": "Request project {0} has no permission and has been switched"
}
3 changes: 2 additions & 1 deletion src/frontend/locale/repository/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -905,5 +905,6 @@
"conanCreditGuideSubTitle1":"1、在命令行执行以下命令配置远程仓库",
"conanCreditGuideSubTitle2":"2、在命令行执行以下命令配置制品仓库凭据(conan1.x)",
"conanRecipePlaceholder":"RECIPE的格式为<NAME>/VERSION>@<USER>/CHANNEL>",
"conanPullGuideSubTitle":"请在命令行执行以下命令进行拉取(conan1.x):"
"conanPullGuideSubTitle":"请在命令行执行以下命令进行拉取(conan1.x):",
"projectNoPermissionTip": "请求项目{0}无权限,已切换"
}

0 comments on commit 7e3ef75

Please sign in to comment.