mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-23 01:50:13 +08:00
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:
parent
3d8f514f30
commit
ab5ffe4e2e
@ -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')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user