hotfix: ensure show token usage setting defaults to true (#6828)

Hotfix: ensure show token usage setting defaults to true
This commit is contained in:
熊可狸 2025-06-05 14:02:09 +08:00 committed by GitHub
parent 4990c28b50
commit a9c644d209
2 changed files with 9 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const persistedReducer = persistReducer(
{
key: 'cherry-studio',
storage,
version: 109,
version: 110,
blacklist: ['runtime', 'messages', 'messageBlocks'],
migrate
},

View File

@ -1473,6 +1473,14 @@ const migrateConfig = {
} catch (error) {
return state
}
},
'110': (state: RootState) => {
try {
state.settings.showTokens = true
return state
} catch (error) {
return state
}
}
}