chore: Update store migration for Coze minapp
This commit is contained in:
parent
c0e0e924f7
commit
5f2cddee09
@ -30,7 +30,7 @@ const persistedReducer = persistReducer(
|
||||
{
|
||||
key: 'cherry-studio',
|
||||
storage,
|
||||
version: 68,
|
||||
version: 69,
|
||||
blacklist: ['runtime'],
|
||||
migrate
|
||||
},
|
||||
|
||||
@ -1065,17 +1065,14 @@ const migrateConfig = {
|
||||
return state
|
||||
},
|
||||
'69': (state: RootState) => {
|
||||
if (state.minapps) {
|
||||
const coze = DEFAULT_MIN_APPS.find((app) => app.id === 'coze')
|
||||
if (coze) {
|
||||
state.minapps.enabled.push(coze)
|
||||
}
|
||||
if (state.minapps) {
|
||||
const coze = DEFAULT_MIN_APPS.find((app) => app.id === 'coze')
|
||||
if (coze) {
|
||||
state.minapps.enabled.push(coze)
|
||||
}
|
||||
removeMiniAppIconsFromState(state)
|
||||
return state
|
||||
}
|
||||
|
||||
// ...existing code...
|
||||
return state
|
||||
}
|
||||
}
|
||||
|
||||
const migrate = createMigrate(migrateConfig as any)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user