add model

This commit is contained in:
sijinhui
2024-04-28 14:34:58 +08:00
parent 6c6453644e
commit 35e7f12d88
3 changed files with 13 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore(
}),
{
name: StoreKey.Config,
version: 3.8993,
version: 3.8994,
migrate(persistedState, version) {
const state = persistedState as ChatConfig;
@@ -168,7 +168,7 @@ export const useAppConfig = createPersistStore(
if (version < 3.8) {
state.lastUpdate = Date.now();
}
if (version < 3.8993) {
if (version < 3.8994) {
state.lastUpdate = Date.now();
return { ...DEFAULT_CONFIG };
}