mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 23:12:38 +08:00
chore: Update store migration for Coze minapp
This commit is contained in:
parent
c3220a7d64
commit
dbfdfa0655
@ -30,7 +30,7 @@ const persistedReducer = persistReducer(
|
|||||||
{
|
{
|
||||||
key: 'cherry-studio',
|
key: 'cherry-studio',
|
||||||
storage,
|
storage,
|
||||||
version: 68,
|
version: 69,
|
||||||
blacklist: ['runtime'],
|
blacklist: ['runtime'],
|
||||||
migrate
|
migrate
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1065,17 +1065,14 @@ const migrateConfig = {
|
|||||||
return state
|
return state
|
||||||
},
|
},
|
||||||
'69': (state: RootState) => {
|
'69': (state: RootState) => {
|
||||||
if (state.minapps) {
|
if (state.minapps) {
|
||||||
const coze = DEFAULT_MIN_APPS.find((app) => app.id === 'coze')
|
const coze = DEFAULT_MIN_APPS.find((app) => app.id === 'coze')
|
||||||
if (coze) {
|
if (coze) {
|
||||||
state.minapps.enabled.push(coze)
|
state.minapps.enabled.push(coze)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
removeMiniAppIconsFromState(state)
|
|
||||||
return state
|
|
||||||
}
|
}
|
||||||
|
return state
|
||||||
// ...existing code...
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const migrate = createMigrate(migrateConfig as any)
|
const migrate = createMigrate(migrateConfig as any)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user