fix: Correct migration version configuration

This commit is contained in:
kangfenmao 2025-02-15 00:55:07 +08:00
parent 2d1a930bfe
commit 2c17f75f4f
2 changed files with 10 additions and 10 deletions

View File

@ -30,7 +30,7 @@ const persistedReducer = persistReducer(
{ {
key: 'cherry-studio', key: 'cherry-studio',
storage, storage,
version: 67, version: 68,
blacklist: ['runtime'], blacklist: ['runtime'],
migrate migrate
}, },

View File

@ -968,15 +968,6 @@ const migrateConfig = {
state.minapps.enabled.push(xiaoyi) state.minapps.enabled.push(xiaoyi)
} }
} }
return state
},
'68': (state: RootState) => {
if (state.minapps) {
const notebooklm = DEFAULT_MIN_APPS.find((app) => app.id === 'notebooklm')
if (notebooklm) {
state.minapps.enabled.push(notebooklm)
}
}
state.llm.providers.push( state.llm.providers.push(
{ {
@ -1035,6 +1026,15 @@ const migrateConfig = {
keepAliveTime: 5 keepAliveTime: 5
} }
return state
},
'68': (state: RootState) => {
if (state.minapps) {
const notebooklm = DEFAULT_MIN_APPS.find((app) => app.id === 'notebooklm')
if (notebooklm) {
state.minapps.enabled.push(notebooklm)
}
}
return state return state
} }
} }