refactor(settings): replace getStorageItem with state.global.settings for default root retrieval

This commit is contained in:
Will Miao
2025-09-19 22:57:05 +08:00
parent 1610048974
commit f3544b3471
5 changed files with 17 additions and 225 deletions

View File

@@ -228,7 +228,7 @@ export class ImportManager {
// Set default root if available
const defaultRootKey = 'default_lora_root';
const defaultRoot = getStorageItem('settings', {})[defaultRootKey];
const defaultRoot = state.global.settings[defaultRootKey];
if (defaultRoot && rootsData.roots.includes(defaultRoot)) {
loraRoot.value = defaultRoot;
}