diff --git a/src/renderer/src/store/index.ts b/src/renderer/src/store/index.ts index fa11da90..60e083f8 100644 --- a/src/renderer/src/store/index.ts +++ b/src/renderer/src/store/index.ts @@ -30,7 +30,7 @@ const persistedReducer = persistReducer( { key: 'cherry-studio', storage, - version: 67, + version: 68, blacklist: ['runtime'], migrate }, diff --git a/src/renderer/src/store/migrate.ts b/src/renderer/src/store/migrate.ts index 70099a99..a3523685 100644 --- a/src/renderer/src/store/migrate.ts +++ b/src/renderer/src/store/migrate.ts @@ -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 } }