fix: 解决镜像清理列表显示不全的问题 (#3759)

pull/3763/head
ssongliu 10 months ago committed by GitHub
parent f91d7c6170
commit 83dda25591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -23,7 +23,7 @@
<div v-if="!withTagAll"> <div v-if="!withTagAll">
<ul v-for="(item, index) in unTagList" :key="index"> <ul v-for="(item, index) in unTagList" :key="index">
<li> <li>
{{ item.tags[0] }} {{ item.tags[0] || '< none >' }}
</li> </li>
</ul> </ul>
</div> </div>
@ -66,7 +66,11 @@ const acceptParams = async (): Promise<void> => {
unTagList.value = []; unTagList.value = [];
unUsedList.value = []; unUsedList.value = [];
for (const item of list) { for (const item of list) {
if (item.tags && item.tags.length === 1 && item.tags[0].indexOf('<none>') !== -1 && !item.isUsed) { if (
!item.tags ||
item.tags.length === 0 ||
(item.tags.length === 1 && item.tags[0].indexOf('<none>') !== -1 && !item.isUsed)
) {
unTagList.value.push(item); unTagList.value.push(item);
} }
if (!item.isUsed) { if (!item.isUsed) {

Loading…
Cancel
Save