diff --git a/src/frontend/devops-repository/src/App.vue b/src/frontend/devops-repository/src/App.vue index 6ae7333944..181be6cbd1 100644 --- a/src/frontend/devops-repository/src/App.vue +++ b/src/frontend/devops-repository/src/App.vue @@ -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)