1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

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

This commit is contained in:
ssongliu 2024-01-31 14:50:47 +08:00 committed by GitHub
parent f91d7c6170
commit 83dda25591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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