mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 21:35:52 +08:00
fix(store): fix store migrate and version (#7924)
* fix(store): 更新持久化存储版本号至121 更新版本号以匹配最新的迁移配置变更 * fix(store): 合并migrate版本121到120
This commit is contained in:
parent
a314a43f0f
commit
2b4ca03376
@ -1733,13 +1733,7 @@ const migrateConfig = {
|
|||||||
if (!state.settings.s3) {
|
if (!state.settings.s3) {
|
||||||
state.settings.s3 = settingsInitialState.s3
|
state.settings.s3 = settingsInitialState.s3
|
||||||
}
|
}
|
||||||
return state
|
|
||||||
} catch (error) {
|
|
||||||
return state
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'120': (state: RootState) => {
|
|
||||||
try {
|
|
||||||
const langMap: Record<string, LanguageCode> = {
|
const langMap: Record<string, LanguageCode> = {
|
||||||
english: 'en-us',
|
english: 'en-us',
|
||||||
chinese: 'zh-cn',
|
chinese: 'zh-cn',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user