chore: show existing when add file

This commit is contained in:
jialin
2025-10-23 11:52:49 +08:00
parent cc0580301e
commit a815e71bfe
25 changed files with 256 additions and 97 deletions
@@ -15,7 +15,7 @@ import { GPUListItem, ListItem } from '../config/types';
type EmptyObject = Record<never, never>;
type CascaderOption<T extends object = EmptyObject> = {
export type CascaderOption<T extends object = EmptyObject> = {
label: string;
value: string | number;
parent?: boolean;
@@ -210,7 +210,10 @@ export const useGenerateWorkerOptions = () => {
cluster_id: item.cluster_id,
state: item.state,
label: item.name,
value: item.id
value: item.id,
id: item.id,
labels: item.labels || {},
name: item.name
}))
);
setClusterList(