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 e2a08e31e8
commit acbec213e8
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ const persistedReducer = persistReducer(
{
key: 'cherry-studio',
storage,
version: 109,
version: 110,
blacklist: ['runtime', 'messages', 'messageBlocks'],
migrate
},
+8
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
}
}
}