fix: set default initial values for rendering speed in aihubmixConfig

- Added initialValue 'DEFAULT' for renderingSpeed in multiple mode configurations to ensure consistent default behavior across the application.
This commit is contained in:
kangfenmao 2025-05-20 11:31:35 +08:00
parent 3d8f514f30
commit ab5ffe4e2e

View File

@ -60,6 +60,7 @@ export const createModeConfigs = (): Record<AihubmixMode, ConfigItem[]> => {
type: 'select', type: 'select',
key: 'renderingSpeed', key: 'renderingSpeed',
options: RENDERING_SPEED_OPTIONS, options: RENDERING_SPEED_OPTIONS,
initialValue: 'DEFAULT',
disabled: (_config, painting) => { disabled: (_config, painting) => {
const model = painting?.model const model = painting?.model
return !model || !model.includes('V_3') return !model || !model.includes('V_3')
@ -153,6 +154,7 @@ export const createModeConfigs = (): Record<AihubmixMode, ConfigItem[]> => {
type: 'select', type: 'select',
key: 'renderingSpeed', key: 'renderingSpeed',
options: RENDERING_SPEED_OPTIONS, options: RENDERING_SPEED_OPTIONS,
initialValue: 'DEFAULE',
disabled: (_config, painting) => { disabled: (_config, painting) => {
const model = painting?.model const model = painting?.model
return !model || !model.includes('V_3') return !model || !model.includes('V_3')
@ -227,6 +229,7 @@ export const createModeConfigs = (): Record<AihubmixMode, ConfigItem[]> => {
type: 'select', type: 'select',
key: 'renderingSpeed', key: 'renderingSpeed',
options: RENDERING_SPEED_OPTIONS, options: RENDERING_SPEED_OPTIONS,
initialValue: 'DEFAULT',
disabled: (_config, painting) => { disabled: (_config, painting) => {
const model = painting?.model const model = painting?.model
return !model || !model.includes('V_3') return !model || !model.includes('V_3')