fix: Correct migration version configuration
This commit is contained in:
parent
2d1a930bfe
commit
2c17f75f4f
@ -30,7 +30,7 @@ const persistedReducer = persistReducer(
|
||||
{
|
||||
key: 'cherry-studio',
|
||||
storage,
|
||||
version: 67,
|
||||
version: 68,
|
||||
blacklist: ['runtime'],
|
||||
migrate
|
||||
},
|
||||
|
||||
@ -968,15 +968,6 @@ const migrateConfig = {
|
||||
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(
|
||||
{
|
||||
@ -1035,6 +1026,15 @@ const migrateConfig = {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user