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:
parent
f91d7c6170
commit
83dda25591
@ -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…
x
Reference in New Issue
Block a user