From 20279db90047186db84fc7e92ecaf7f3e0561700 Mon Sep 17 00:00:00 2001 From: lannoy0523 <935275025@qq.com> Date: Fri, 8 Nov 2024 16:22:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=97=AE=E9=A2=98=20#2738?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Header/index.vue | 2 +- .../src/views/repoGeneric/index.vue | 14 ++++---- .../src/views/repoList/createRepoDialog.vue | 2 +- .../src/views/repoList/index.vue | 35 ++++++++++++++++--- .../src/views/repoSearch/index.vue | 25 +++++++++++-- 5 files changed, 63 insertions(+), 15 deletions(-) diff --git a/src/frontend/devops-repository/src/components/Header/index.vue b/src/frontend/devops-repository/src/components/Header/index.vue index 10a8e2a73e..6f39c48dc8 100644 --- a/src/frontend/devops-repository/src/components/Header/index.vue +++ b/src/frontend/devops-repository/src/components/Header/index.vue @@ -203,7 +203,7 @@ uid: this.userInfo.name } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { window.open(res, '_blank') } }) diff --git a/src/frontend/devops-repository/src/views/repoGeneric/index.vue b/src/frontend/devops-repository/src/views/repoGeneric/index.vue index e0d64d7cef..6d0665d95f 100644 --- a/src/frontend/devops-repository/src/views/repoGeneric/index.vue +++ b/src/frontend/devops-repository/src/views/repoGeneric/index.vue @@ -789,7 +789,7 @@ repoName: this.repoName } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -966,7 +966,7 @@ path: fullPath } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1047,7 +1047,7 @@ path: row.fullPath } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1147,7 +1147,7 @@ repoName: this.repoName } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1223,7 +1223,7 @@ repoName: this.repoName } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1310,7 +1310,7 @@ path: row.fullPath } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1366,7 +1366,7 @@ path: row.fullPath } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, diff --git a/src/frontend/devops-repository/src/views/repoList/createRepoDialog.vue b/src/frontend/devops-repository/src/views/repoList/createRepoDialog.vue index 72baf42066..da9708072b 100644 --- a/src/frontend/devops-repository/src/views/repoList/createRepoDialog.vue +++ b/src/frontend/devops-repository/src/views/repoList/createRepoDialog.vue @@ -292,7 +292,7 @@ uid: this.userInfo.name } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, diff --git a/src/frontend/devops-repository/src/views/repoList/index.vue b/src/frontend/devops-repository/src/views/repoList/index.vue index 195270e7f4..5c42a95476 100644 --- a/src/frontend/devops-repository/src/views/repoList/index.vue +++ b/src/frontend/devops-repository/src/views/repoList/index.vue @@ -1,7 +1,8 @@