fix: select gpu stype when creating cluster from gpu service

This commit is contained in:
jialin
2026-06-17 12:35:24 +08:00
committed by jialin
parent 1f5678f781
commit aa49539210
7 changed files with 45 additions and 14 deletions
@@ -1,13 +1,15 @@
import { createContext, useContext } from 'react';
export interface StepsContextProps {
presetClusterType?: 'model' | 'gpu';
formValues: Record<string, any>;
systemConfig?: Record<string, any>;
}
export const StepsContext = createContext<StepsContextProps>({
formValues: {},
systemConfig: {}
systemConfig: {},
presetClusterType: undefined
});
export const useStepsContext = () => useContext(StepsContext);