We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1694b5f commit 9f44214Copy full SHA for 9f44214
1 file changed
src/renderer/src/utils/storage.ts
@@ -1,10 +1,13 @@
1
import { AppState, Settings, Page, PageFolder } from '../types'
2
3
+// 应用版本号,用于存储键的版本控制
4
+const APP_VERSION = '1.0.0-preview.2'
5
+
6
const STORAGE_KEYS = {
- APP_STATE: 'ai-chat-app-state',
- SETTINGS: 'ai-chat-app-settings',
- PAGES: 'ai-chat-app-pages',
7
- FOLDERS: 'ai-chat-app-folders'
+ APP_STATE: `ai-chat-app-state-v${APP_VERSION}`,
8
+ SETTINGS: `ai-chat-app-settings-v${APP_VERSION}`,
9
+ PAGES: `ai-chat-app-pages-v${APP_VERSION}`,
10
+ FOLDERS: `ai-chat-app-folders-v${APP_VERSION}`
11
} as const
12
13
export class StorageService {
0 commit comments