性能优化
This commit is contained in:
@@ -7,6 +7,7 @@ import { useSearchStore } from '@/stores/searchStore'
|
||||
import { useProcessStore } from '@/stores/processStore'
|
||||
import { toast } from 'vue-sonner'
|
||||
import { createLogger } from '@/lib/logger'
|
||||
import { STORAGE_KEYS } from '@/lib/constants'
|
||||
import type { ModuleCategory } from '@/types/module'
|
||||
|
||||
const logger = createLogger('app')
|
||||
@@ -27,7 +28,7 @@ export interface ModuleInfo {
|
||||
|
||||
/** localStorage 版本号 —— 结构变更时递增,自动清除旧数据 */
|
||||
const SETTINGS_VERSION = 4
|
||||
const STORAGE_KEY = 'thing_app_settings'
|
||||
const STORAGE_KEY = STORAGE_KEYS.appSettings
|
||||
|
||||
/** 从模块注册表初始化模块元信息 */
|
||||
const initModulesFromRegistry = (): ModuleInfo[] => {
|
||||
|
||||
Reference in New Issue
Block a user