From 7e3ef75b61d531a1b2284bffe878c02684b2cc9c Mon Sep 17 00:00:00 2001 From: lannoy0523 <935275025@qq.com> Date: Tue, 10 Dec 2024 16:23:04 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20DDC=E5=9C=A8=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E8=BF=9B=E8=A1=8COAuth=E6=8E=88=E6=9D=83=E6=97=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=B7=B3=E8=BD=AC=E8=87=B3=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=20#2839?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/devops-repository/src/App.vue | 4 ++++ src/frontend/locale/repository/en-US.json | 3 ++- src/frontend/locale/repository/zh-CN.json | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/frontend/devops-repository/src/App.vue b/src/frontend/devops-repository/src/App.vue index 8249216a87..1a9e003b72 100644 --- a/src/frontend/devops-repository/src/App.vue +++ b/src/frontend/devops-repository/src/App.vue @@ -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) diff --git a/src/frontend/locale/repository/en-US.json b/src/frontend/locale/repository/en-US.json index 34d1037222..290860f3d0 100644 --- a/src/frontend/locale/repository/en-US.json +++ b/src/frontend/locale/repository/en-US.json @@ -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 /VERSION>@/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" } diff --git a/src/frontend/locale/repository/zh-CN.json b/src/frontend/locale/repository/zh-CN.json index 2332851e55..e24a91ed56 100644 --- a/src/frontend/locale/repository/zh-CN.json +++ b/src/frontend/locale/repository/zh-CN.json @@ -905,5 +905,6 @@ "conanCreditGuideSubTitle1":"1、在命令行执行以下命令配置远程仓库", "conanCreditGuideSubTitle2":"2、在命令行执行以下命令配置制品仓库凭据(conan1.x)", "conanRecipePlaceholder":"RECIPE的格式为/VERSION>@/CHANNEL>", - "conanPullGuideSubTitle":"请在命令行执行以下命令进行拉取(conan1.x):" + "conanPullGuideSubTitle":"请在命令行执行以下命令进行拉取(conan1.x):", + "projectNoPermissionTip": "请求项目{0}无权限,已切换" }