chore: os image filter

This commit is contained in:
jialin
2025-12-03 11:38:16 +08:00
parent f335cb1775
commit 03999a9d2c
5 changed files with 45 additions and 24 deletions
@@ -126,6 +126,7 @@ export const useProviderRegions = () => {
const label = formatLabel(item);
const description = `${label} ${item.gpu_info?.count}X`;
return {
count: item.gpu_info?.count,
label: `${description} - ${formatSpec(specInfo)}`,
value: item.slug,
description: description,
@@ -171,9 +172,12 @@ export const useProviderRegions = () => {
};
const updateOSImages = (region: string, allImages?: any[]) => {
const list = (allImages || allOSImageList).filter((item) =>
item.regions.includes(region)
const list = (allImages || allOSImageList).filter(
(item) =>
item.regions.includes(region) &&
['debian', 'ubuntu'].includes(item.vendor)
);
console.log('osimagelist========', list);
setOSImageList(list);
};