From b4f8f61c50e231557f5b01447e8dcfafd633d11c Mon Sep 17 00:00:00 2001 From: lannoy0523 <935275025@qq.com> Date: Thu, 12 Dec 2024 10:29:08 +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 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/frontend/devops-repository/src/App.vue b/src/frontend/devops-repository/src/App.vue index a5c87141f5..e1c54a1780 100644 --- a/src/frontend/devops-repository/src/App.vue +++ b/src/frontend/devops-repository/src/App.vue @@ -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)