From 44224bfb34d0438978353f415a72834457d7df13 Mon Sep 17 00:00:00 2001 From: lannoy0523 <46735290+lannoy0523@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:16:15 +0800 Subject: [PATCH] =?UTF-8?q?bug:=E5=89=8D=E7=AB=AF=E5=88=B6=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=89=B9=E9=87=8F=E9=80=89=E6=8B=A9=E6=95=B0?= =?UTF-8?q?=E7=9B=AE=E5=BC=82=E5=B8=B8=20#2629?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devops-repository/src/store/actions/repoGeneric.js | 2 +- .../src/views/repoGeneric/genericFormDialog.vue | 1 + src/frontend/devops-repository/src/views/repoGeneric/index.vue | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend/devops-repository/src/store/actions/repoGeneric.js b/src/frontend/devops-repository/src/store/actions/repoGeneric.js index debad7e1c4..bc3c58bd4d 100644 --- a/src/frontend/devops-repository/src/store/actions/repoGeneric.js +++ b/src/frontend/devops-repository/src/store/actions/repoGeneric.js @@ -133,7 +133,7 @@ export default { if (isPipeline && !fullPath && !name && localRepo) { return Vue.prototype.$ajax.get( `${prefix}/pipeline/list/${projectId}` - ).then(records => ({ records, totalRecords: 0 })) + ).then(records => ({ records, totalRecords: records.length })) } else { return Vue.prototype.$ajax.post( localRepo ? `${prefix}/node/search` : `generic/${projectId}/${repoName}/search`, diff --git a/src/frontend/devops-repository/src/views/repoGeneric/genericFormDialog.vue b/src/frontend/devops-repository/src/views/repoGeneric/genericFormDialog.vue index 6c99cd66eb..52588bef3d 100644 --- a/src/frontend/devops-repository/src/views/repoGeneric/genericFormDialog.vue +++ b/src/frontend/devops-repository/src/views/repoGeneric/genericFormDialog.vue @@ -291,6 +291,7 @@ } fn.then(() => { this.$emit('refresh') + this.$emit('cancelSelect') if (!this.webError) { this.$bkMessage({ theme: 'success', diff --git a/src/frontend/devops-repository/src/views/repoGeneric/index.vue b/src/frontend/devops-repository/src/views/repoGeneric/index.vue index 0dc89f0f6c..e1c9444eab 100644 --- a/src/frontend/devops-repository/src/views/repoGeneric/index.vue +++ b/src/frontend/devops-repository/src/views/repoGeneric/index.vue @@ -221,7 +221,7 @@ - + @@ -925,6 +925,7 @@ fullPath }).then(res => { this.refreshNodeChange() + this.cancelSelect() if (folder) { if (totalRecords === res.deletedNumber) { this.$bkMessage({