diff --git a/src/frontend/devops-repository/src/App.vue b/src/frontend/devops-repository/src/App.vue index 241b45740b..6ae7333944 100644 --- a/src/frontend/devops-repository/src/App.vue +++ b/src/frontend/devops-repository/src/App.vue @@ -81,7 +81,14 @@ } } else { let projectId = '' - if (this.projectList.find(v => v.id === urlProjectId)) { + const hasUrlProjectId = this.projectList.find(v => v.id === urlProjectId) + if (!hasUrlProjectId) { + this.$bkMessage({ + message: this.$t('projectNoPermissionTip', { 0: urlProjectId }), + theme: 'error' + }) + } + if (hasUrlProjectId) { projectId = urlProjectId } else { this.$bkMessage({