From 83dda25591ed767fc76536df2a7bf2117de7ee0c Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 31 Jan 2024 14:50:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=B8=85=E7=90=86=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=85=A8=E7=9A=84=E9=97=AE=E9=A2=98=20(#3759)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/container/image/prune/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/container/image/prune/index.vue b/frontend/src/views/container/image/prune/index.vue index 5ae4dd8c1..b519c02d5 100644 --- a/frontend/src/views/container/image/prune/index.vue +++ b/frontend/src/views/container/image/prune/index.vue @@ -23,7 +23,7 @@
@@ -66,7 +66,11 @@ const acceptParams = async (): Promise => { unTagList.value = []; unUsedList.value = []; for (const item of list) { - if (item.tags && item.tags.length === 1 && item.tags[0].indexOf('') !== -1 && !item.isUsed) { + if ( + !item.tags || + item.tags.length === 0 || + (item.tags.length === 1 && item.tags[0].indexOf('') !== -1 && !item.isUsed) + ) { unTagList.value.push(item); } if (!item.isUsed) {